Index: chrome/browser/extensions/extension_cookies_api.cc |
diff --git a/chrome/browser/extensions/extension_cookies_api.cc b/chrome/browser/extensions/extension_cookies_api.cc |
index 83c535db7c6e5e2f117f585fd4e0037a51475194..a7915b4ebcba47fbc4ca35b7b381164b5138c716 100644 |
--- a/chrome/browser/extensions/extension_cookies_api.cc |
+++ b/chrome/browser/extensions/extension_cookies_api.cc |
@@ -25,16 +25,18 @@ |
namespace keys = extension_cookies_api_constants; |
-// static |
-ExtensionCookiesEventRouter* ExtensionCookiesEventRouter::GetInstance() { |
- return Singleton<ExtensionCookiesEventRouter>::get(); |
-} |
+ExtensionCookiesEventRouter::ExtensionCookiesEventRouter() {} |
+ |
+ExtensionCookiesEventRouter::~ExtensionCookiesEventRouter() {} |
-void ExtensionCookiesEventRouter::Init() { |
+void ExtensionCookiesEventRouter::ObserveProfile(Profile* profile) { |
if (registrar_.IsEmpty()) { |
registrar_.Add(this, |
NotificationType::COOKIE_CHANGED, |
- NotificationService::AllSources()); |
+ Source<Profile>(profile)); |
+ registrar_.Add(this, |
+ NotificationType::COOKIE_CHANGED, |
+ Source<Profile>(profile->GetOffTheRecordProfile())); |
} |
} |