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

Side by Side Diff: ext/background.js

Issue 6528746257383424: Issue 1708 - Integrate first-run page changes in Chrome/Opera/Safari (Closed)
Patch Set: Rebased patch Created Dec. 18, 2014, 10:12 p.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 | « .hgsubstate ('k') | metadata.common » ('j') | 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 <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2014 Eyeo GmbH 3 * Copyright (C) 2006-2014 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 delete: function(page) 54 delete: function(page)
55 { 55 {
56 this._delete(page._id); 56 this._delete(page._id);
57 } 57 }
58 }; 58 };
59 59
60 ext._removeFromAllPageMaps = function(pageId) 60 ext._removeFromAllPageMaps = function(pageId)
61 { 61 {
62 for (var pageMapId in nonEmptyPageMaps) 62 for (var pageMapId in nonEmptyPageMaps)
63 nonEmptyPageMaps[pageMapId]._delete(pageId); 63 nonEmptyPageMaps[pageMapId]._delete(pageId);
64
65 ext.onPageRemoved._dispatch(function(page)
66 {
67 return page._id == pageId;
68 });
64 }; 69 };
70
71 ext.onPageRemoved = new ext._EventTarget();
65 })(); 72 })();
OLDNEW
« no previous file with comments | « .hgsubstate ('k') | metadata.common » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld