Index: chrome/browser/android/foreign_session_helper.cc |
diff --git a/chrome/browser/android/foreign_session_helper.cc b/chrome/browser/android/foreign_session_helper.cc |
index 058b196b344d9d218e3ab07389127278718e6067..c6a64428e047a71f948ae62356eec04d120fbcd7 100644 |
--- a/chrome/browser/android/foreign_session_helper.cc |
+++ b/chrome/browser/android/foreign_session_helper.cc |
@@ -158,9 +158,6 @@ ForeignSessionHelper::ForeignSessionHelper(Profile* profile) |
// NOTE: The ProfileSyncService can be null in tests. |
if (service) |
scoped_observer_.Add(service); |
- |
- registrar_.Add(this, chrome::NOTIFICATION_FOREIGN_SESSION_UPDATED, |
- content::Source<Profile>(profile)); |
} |
ForeignSessionHelper::~ForeignSessionHelper() { |
@@ -198,19 +195,11 @@ void ForeignSessionHelper::FireForeignSessionCallback() { |
Java_ForeignSessionCallback_onUpdated(env, callback_.obj()); |
} |
-void ForeignSessionHelper::Observe( |
- int type, const content::NotificationSource& source, |
- const content::NotificationDetails& details) { |
- switch (type) { |
- case chrome::NOTIFICATION_FOREIGN_SESSION_UPDATED: |
- FireForeignSessionCallback(); |
- break; |
- default: |
- NOTREACHED(); |
- } |
+void ForeignSessionHelper::OnSyncConfigurationCompleted() { |
+ FireForeignSessionCallback(); |
} |
-void ForeignSessionHelper::OnSyncConfigurationCompleted() { |
+void ForeignSessionHelper::OnForeignSessionUpdated() { |
FireForeignSessionCallback(); |
} |