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

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

Issue 2520833003: Create ExtensionSystemImpl::quota_service_ before loading any extension (Closed)
Patch Set: move QuotaService init before loading any extension Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_system_impl.cc
diff --git a/chrome/browser/extensions/extension_system_impl.cc b/chrome/browser/extensions/extension_system_impl.cc
index bdaf85049b87e4a3dd4302e2aeb140500c708eb3..038ea9feb4f3a973dfe105bd9e152e94ba1de2b4 100644
--- a/chrome/browser/extensions/extension_system_impl.cc
+++ b/chrome/browser/extensions/extension_system_impl.cc
@@ -240,6 +240,10 @@ void ExtensionSystemImpl::Shared::Init(bool extensions_enabled) {
RegisterManagementPolicyProviders();
}
+ // Extension API calls require QuotaService, so create it before loading any
+ // extensions.
+ quota_service_.reset(new QuotaService);
+
bool skip_session_extensions = false;
#if defined(OS_CHROMEOS)
// Skip loading session extensions if we are not in a user session.
@@ -282,8 +286,6 @@ void ExtensionSystemImpl::Shared::Init(bool extensions_enabled) {
// Make the chrome://extension-icon/ resource available.
content::URLDataSource::Add(profile_, new ExtensionIconSource(profile_));
-
- quota_service_.reset(new QuotaService);
}
void ExtensionSystemImpl::Shared::Shutdown() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698