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; |
} |