Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java

Issue 29355386: Issue 4463 - Content blocker unavailable error message (Closed)
Left Patch Set: Reverting ABP version to hardcoded String Created Sept. 30, 2016, 2:13 p.m.
Right Patch Set: Adjusting indentation Created Oct. 7, 2016, 2:38 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 return null; 492 return null;
493 } 493 }
494 494
495 private static File getDummyFilterFile(Context context) 495 private static File getDummyFilterFile(Context context)
496 { 496 {
497 return new File(getFilterCacheDir(context), "dummy.txt"); 497 return new File(getFilterCacheDir(context), "dummy.txt");
498 } 498 }
499 499
500 private static File getFilterCacheDir(Context context) 500 private static File getFilterCacheDir(Context context)
501 { 501 {
502 return new File(context.getCacheDir(), "subscriptions"); 502 return new File(context.getCacheDir(), "subscriptions");
503 } 503 }
504 504
505 private static File getSubscriptionsDir(Context context) 505 private static File getSubscriptionsDir(Context context)
506 { 506 {
507 return new File(context.getFilesDir(), "subscriptions"); 507 return new File(context.getFilesDir(), "subscriptions");
508 } 508 }
509 509
510 URL createDownloadURL(final Subscription sub) throws IOException 510 URL createDownloadURL(final Subscription sub) throws IOException
511 { 511 {
512 final StringBuilder sb = new StringBuilder(); 512 final StringBuilder sb = new StringBuilder();
513 513
514 sb.append(sub.getURL()); 514 sb.append(sub.getURL());
515 if (sub.getURL().getQuery() != null) 515 if (sub.getURL().getQuery() != null)
516 { 516 {
517 sb.append('&'); 517 sb.append('&');
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 Log.d(TAG, headers.toString()); 710 Log.d(TAG, headers.toString());
711 this.downloader.enqueueDownload(this.createDownloadURL(sub), sub.getId(), headers); 711 this.downloader.enqueueDownload(this.createDownloadURL(sub), sub.getId(), headers);
712 } 712 }
713 } 713 }
714 714
715 public void connectivityChanged() 715 public void connectivityChanged()
716 { 716 {
717 this.downloader.connectivityChanged(); 717 this.downloader.connectivityChanged();
718 } 718 }
719 } 719 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld