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

Delta Between Two Patch Sets: background.js

Issue 29333528: Issue 3515 - Use fetch() API instead XMLHttpRequest (Platform) (Closed)
Left Patch Set: Rebased and addressed comments Created Jan. 19, 2016, 2:29 p.m.
Right Patch Set: Addressed comment Created Jan. 19, 2016, 4:12 p.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
« no previous file with change/comment | « no previous file | options.html » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 subscription.disabled = false; 243 subscription.disabled = false;
244 subscription.title = node.getAttribute("title"); 244 subscription.title = node.getAttribute("title");
245 subscription.homepage = node.getAttribute("homepage"); 245 subscription.homepage = node.getAttribute("homepage");
246 246
247 if (subscription instanceof DownloadableSubscription && 247 if (subscription instanceof DownloadableSubscription &&
248 !subscription.lastDownload) 248 !subscription.lastDownload)
249 Synchronizer.execute(subscription); 249 Synchronizer.execute(subscription);
250 } 250 }
251 }) 251 })
252 ).then(function() 252 )
253 .then(function()
253 { 254 {
254 if (!Prefs.suppress_first_run_page) 255 if (!Prefs.suppress_first_run_page)
255 ext.pages.open(ext.getURL("firstRun.html")); 256 ext.pages.open(ext.getURL("firstRun.html"));
256 }); 257 });
257 } 258 }
258 259
259 Prefs.onChanged.addListener(function(name) 260 Prefs.onChanged.addListener(function(name)
260 { 261 {
261 if (name == "shouldShowBlockElementMenu") 262 if (name == "shouldShowBlockElementMenu")
262 refreshIconAndContextMenuForAllPages(); 263 refreshIconAndContextMenuForAllPages();
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 } 419 }
419 }); 420 });
420 421
421 // update icon when page changes location 422 // update icon when page changes location
422 ext.pages.onLoading.addListener(function(page) 423 ext.pages.onLoading.addListener(function(page)
423 { 424 {
424 page.sendMessage({type: "clickhide-deactivate"}); 425 page.sendMessage({type: "clickhide-deactivate"});
425 refreshIconAndContextMenu(page); 426 refreshIconAndContextMenu(page);
426 showNextNotificationForUrl(page.url); 427 showNextNotificationForUrl(page.url);
427 }); 428 });
LEFTRIGHT
« no previous file | options.html » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld