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

Side by Side Diff: libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java

Issue 29588563: Issue 5929 - Skip update subscription URLs in AndroidWebRequest if not required (Closed)
Patch Set: Created Oct. 25, 2017, 8:07 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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-present eyeo GmbH 3 * Copyright (C) 2006-present 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 244
245 public AdblockEngine build() 245 public AdblockEngine build()
246 { 246 {
247 initRequests(); 247 initRequests();
248 248
249 // webRequest should be ready to be used passed right after JsEngine is cr eated 249 // webRequest should be ready to be used passed right after JsEngine is cr eated
250 createEngines(); 250 createEngines();
251 251
252 initCallbacks(); 252 initCallbacks();
253 253
254 androidWebRequest.updateSubscriptionURLs(engine.filterEngine); 254 if (!engine.elemhideEnabled)
255 {
256 androidWebRequest.updateSubscriptionURLs(engine.filterEngine);
257 }
255 258
256 return engine; 259 return engine;
257 } 260 }
258 261
259 private void createEngines() 262 private void createEngines()
260 { 263 {
261 engine.logSystem = new AndroidLogSystem(); 264 engine.logSystem = new AndroidLogSystem();
262 engine.platform = new Platform(engine.logSystem, engine.webRequest, basePa th); 265 engine.platform = new Platform(engine.logSystem, engine.webRequest, basePa th);
263 if (v8IsolatePtr != null) 266 if (v8IsolatePtr != null)
264 { 267 {
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 public void setWhitelistedDomains(List<String> domains) 635 public void setWhitelistedDomains(List<String> domains)
633 { 636 {
634 this.whitelistedDomains = domains; 637 this.whitelistedDomains = domains;
635 } 638 }
636 639
637 public List<String> getWhitelistedDomains() 640 public List<String> getWhitelistedDomains()
638 { 641 {
639 return whitelistedDomains; 642 return whitelistedDomains;
640 } 643 }
641 } 644 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld