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

Delta Between Two Patch Sets: lib/adblockplus_compat.js

Issue 8680033: Made sure to enable acceptable ads and to open the first-run page (Closed)
Left Patch Set: Created Oct. 25, 2012, 4:20 p.m.
Right Patch Set: Created Oct. 25, 2012, 4:24 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 | « background.js ('k') | no next file » | 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 Source Code is subject to the terms of the Mozilla Public License 2 * This Source Code is subject to the terms of the Mozilla Public License
3 * version 2.0 (the "License"). You can obtain a copy of the License at 3 * version 2.0 (the "License"). You can obtain a copy of the License at
4 * http://mozilla.org/MPL/2.0/. 4 * http://mozilla.org/MPL/2.0/.
5 */ 5 */
6 6
7 // 7 //
8 // Module framework stuff 8 // Module framework stuff
9 // 9 //
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 return new FakeFile(path); 136 return new FakeFile(path);
137 }, 137 },
138 138
139 readFromFile: function(file, decode, listener, callback, timeLineID) 139 readFromFile: function(file, decode, listener, callback, timeLineID)
140 { 140 {
141 if ("spec" in file && /^defaults\b/.test(file.spec)) 141 if ("spec" in file && /^defaults\b/.test(file.spec))
142 { 142 {
143 // Code attempts to read the default patterns.ini, we don't have that. 143 // Code attempts to read the default patterns.ini, we don't have that.
144 // Make sure to execute first-run actions instead. 144 // Make sure to execute first-run actions instead.
145 callback(null); 145 callback(null);
146 executeFirstRunActions(); 146 addSubscription("0.1");
147 return; 147 return;
148 } 148 }
149 149
150 this._getFileEntry(file, false, function(fs, fileEntry) 150 this._getFileEntry(file, false, function(fs, fileEntry)
151 { 151 {
152 fileEntry.file(function(file) 152 fileEntry.file(function(file)
153 { 153 {
154 var reader = new FileReader(); 154 var reader = new FileReader();
155 reader.onloadend = function() 155 reader.onloadend = function()
156 { 156 {
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 status: -1, 579 status: -1,
580 notificationCallbacks: {}, 580 notificationCallbacks: {},
581 loadFlags: 0, 581 loadFlags: 0,
582 INHIBIT_CACHING: 0, 582 INHIBIT_CACHING: 0,
583 VALIDATE_ALWAYS: 0, 583 VALIDATE_ALWAYS: 0,
584 QueryInterface: function() 584 QueryInterface: function()
585 { 585 {
586 return this; 586 return this;
587 } 587 }
588 }; 588 };
LEFTRIGHT

Powered by Google App Engine
This is Rietveld