| Index: chrome/browser/android/most_visited_sites.cc
|
| diff --git a/chrome/browser/android/most_visited_sites.cc b/chrome/browser/android/most_visited_sites.cc
|
| index 2cd9c4a042d345bdf03512d8df569657d2784be6..7b71164d397495c8309a6f078e6be3490ee2eafa 100644
|
| --- a/chrome/browser/android/most_visited_sites.cc
|
| +++ b/chrome/browser/android/most_visited_sites.cc
|
| @@ -209,6 +209,10 @@ MostVisitedSites::MostVisitedSites(Profile* profile)
|
| }
|
|
|
| MostVisitedSites::~MostVisitedSites() {
|
| + ProfileSyncService* profile_sync_service =
|
| + ProfileSyncServiceFactory::GetForProfile(profile_);
|
| + if (profile_sync_service && profile_sync_service->HasObserver(this))
|
| + profile_sync_service->RemoveObserver(this);
|
| }
|
|
|
| void MostVisitedSites::Destroy(JNIEnv* env, jobject obj) {
|
|
|