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

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

Issue 10031002: Allow extension APIs to be compiled out. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add extensions_api_resources resources to windows targets Created 8 years, 8 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
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index cfb94bd5c3a6d5582ac8c2116ba8e541c164acab..be176fd9c1aaa6e10c56df5d89cccb242230859b 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -535,6 +535,7 @@ void ExtensionService::InitEventRouters() {
if (event_routers_initialized_)
return;
+#if defined(ENABLE_EXTENSIONS)
downloads_event_router_.reset(new ExtensionDownloadsEventRouter(profile_));
history_event_router_.reset(new HistoryExtensionEventRouter());
history_event_router_->ObserveProfile(profile_);
@@ -574,6 +575,7 @@ void ExtensionService::InitEventRouters() {
ExtensionInputUiEventRouter::GetInstance()->Init();
#endif
+#endif // defined(ENABLE_EXTENSIONS)
event_routers_initialized_ = true;
}

Powered by Google App Engine
This is Rietveld 408576698