Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1594)

Unified Diff: chrome/browser/extensions/extension_service.cc

Issue 8308003: Revert 105661 - Revert 105659 - Delay network requests on startup if any webRequest or webNavigat... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_service.cc
===================================================================
--- chrome/browser/extensions/extension_service.cc (revision 105685)
+++ chrome/browser/extensions/extension_service.cc (working copy)
@@ -2610,6 +2610,12 @@
extension_prefs_->SetAllowFileAccess(id, true);
}
+ // If the extension should automatically block network startup (e.g., it uses
+ // the webRequest API), set the preference. Otherwise clear it, in case the
+ // extension stopped using a relevant API.
+ extension_prefs_->SetDelaysNetworkRequests(
+ extension->id(), extension->ImplicitlyDelaysNetworkStartup());
+
NotificationService::current()->Notify(
chrome::NOTIFICATION_EXTENSION_INSTALLED,
Source<Profile>(profile_),
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/extensions/extension_webrequest_time_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698