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

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

Issue 6961027: Change event routers from singletons to being owned by the ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes for ChromeOS Created 9 years, 7 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_preference_api.cc
diff --git a/chrome/browser/extensions/extension_preference_api.cc b/chrome/browser/extensions/extension_preference_api.cc
index 48b40e6df6725ca87a3aa417759719ee3a2825e2..7f48268bf407b532ac3842d643e3da368f47c283 100644
--- a/chrome/browser/extensions/extension_preference_api.cc
+++ b/chrome/browser/extensions/extension_preference_api.cc
@@ -199,7 +199,12 @@ class PrefMapping {
} // namespace
ExtensionPreferenceEventRouter::ExtensionPreferenceEventRouter(
- Profile* profile) : profile_(profile) {
+ Profile* profile) : profile_(profile) {
asargent_no_longer_on_chrome 2011/05/24 19:53:31 did you mean to include this extra space be here?
Yoyo Zhou 2011/05/25 00:48:47 Nope, thanks.
+}
+
+ExtensionPreferenceEventRouter::~ExtensionPreferenceEventRouter() {}
+
+void ExtensionPreferenceEventRouter::Init() {
registrar_.Init(profile_->GetPrefs());
incognito_registrar_.Init(profile_->GetOffTheRecordPrefs());
for (size_t i = 0; i < arraysize(kPrefMapping); ++i) {
@@ -208,8 +213,6 @@ ExtensionPreferenceEventRouter::ExtensionPreferenceEventRouter(
}
}
-ExtensionPreferenceEventRouter::~ExtensionPreferenceEventRouter() { }
-
void ExtensionPreferenceEventRouter::Observe(
NotificationType type,
const NotificationSource& source,
« no previous file with comments | « chrome/browser/extensions/extension_preference_api.h ('k') | chrome/browser/extensions/extension_processes_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698