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

Unified Diff: chrome/common/extensions/extension.cc

Issue 8205001: (Owner approval for) Delay network requests on startup if any webRequest ... (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/common/extensions/extension.cc
===================================================================
--- chrome/common/extensions/extension.cc (revision 104705)
+++ chrome/common/extensions/extension.cc (working copy)
@@ -2837,6 +2837,13 @@
return location() != Extension::COMPONENT;
}
+bool Extension::ImplicitlyDelaysNetworkStartup() const {
+ // Network requests should be deferred until any extensions that might want
+ // to observe or modify them are loaded.
+ return HasAPIPermission(ExtensionAPIPermission::kWebNavigation) ||
+ HasAPIPermission(ExtensionAPIPermission::kWebRequest);
+}
+
bool Extension::IsDisallowedExperimentalPermission(
ExtensionAPIPermission::ID permission) const {
return permission == ExtensionAPIPermission::kExperimental &&

Powered by Google App Engine
This is Rietveld 408576698