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

Unified Diff: chrome/browser/extensions/api/management/management_api.cc

Issue 11366074: Coalesce event router Init calls into their constructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: aa Created 8 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
Index: chrome/browser/extensions/api/management/management_api.cc
diff --git a/chrome/browser/extensions/api/management/management_api.cc b/chrome/browser/extensions/api/management/management_api.cc
index 4cd3a39db1100a79061f7ea82c509fb40ce9ade6..cad2abfb9eb30b21e738d45aea7650d08191d36a 100644
--- a/chrome/browser/extensions/api/management/management_api.cc
+++ b/chrome/browser/extensions/api/management/management_api.cc
@@ -583,11 +583,7 @@ void UninstallFunction::ExtensionUninstallCanceled() {
}
ExtensionManagementEventRouter::ExtensionManagementEventRouter(Profile* profile)
- : profile_(profile) {}
-
-ExtensionManagementEventRouter::~ExtensionManagementEventRouter() {}
-
-void ExtensionManagementEventRouter::Init() {
+ : profile_(profile) {
int types[] = {
chrome::NOTIFICATION_EXTENSION_INSTALLED,
chrome::NOTIFICATION_EXTENSION_UNINSTALLED,
@@ -603,6 +599,8 @@ void ExtensionManagementEventRouter::Init() {
}
}
+ExtensionManagementEventRouter::~ExtensionManagementEventRouter() {}
+
void ExtensionManagementEventRouter::Observe(
int type,
const content::NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698