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

Unified Diff: chrome/browser/sync_file_system/drive_backend/drive_file_sync_service.cc

Issue 23514025: Use GetForBrowserContext instead of GetForProfile for DriveNotificationManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & resolve conflict Created 7 years, 3 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/sync_file_system/drive_backend/drive_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_file_sync_service.cc b/chrome/browser/sync_file_system/drive_backend/drive_file_sync_service.cc
index bcb8aed2cdd2cc4e880fd1244adead36cdb5935c..6eef2a98778d527bbd7a6f40ddfddd1dc2f1cbdc 100644
--- a/chrome/browser/sync_file_system/drive_backend/drive_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/drive_backend/drive_file_sync_service.cc
@@ -90,7 +90,7 @@ DriveFileSyncService::~DriveFileSyncService() {
api_util_->RemoveObserver(this);
drive::DriveNotificationManager* drive_notification_manager =
- drive::DriveNotificationManagerFactory::GetForProfile(profile_);
+ drive::DriveNotificationManagerFactory::GetForBrowserContext(profile_);
if (drive_notification_manager)
drive_notification_manager->RemoveObserver(this);
}
@@ -424,7 +424,7 @@ void DriveFileSyncService::DidInitializeMetadataStore(
may_have_unfetched_changes_ = true;
drive::DriveNotificationManager* drive_notification_manager =
- drive::DriveNotificationManagerFactory::GetForProfile(profile_);
+ drive::DriveNotificationManagerFactory::GetForBrowserContext(profile_);
if (drive_notification_manager)
drive_notification_manager->AddObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698