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

Unified Diff: chrome/browser/chromeos/drive/drive_integration_service.cc

Issue 23514025: Use GetForBrowserContext instead of GetForProfile for DriveNotificationManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reset invalidation_service_ on Shutdown Created 7 years, 4 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/chromeos/drive/drive_integration_service.cc
diff --git a/chrome/browser/chromeos/drive/drive_integration_service.cc b/chrome/browser/chromeos/drive/drive_integration_service.cc
index e6be3df5ad685ee21f569496397fab312948776f..dafcc21cfe32e869c2632e1e869c0c5b3a47a448 100644
--- a/chrome/browser/chromeos/drive/drive_integration_service.cc
+++ b/chrome/browser/chromeos/drive/drive_integration_service.cc
@@ -216,7 +216,7 @@ void DriveIntegrationService::Shutdown() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DriveNotificationManager* drive_notification_manager =
- DriveNotificationManagerFactory::GetForProfile(profile_);
+ DriveNotificationManagerFactory::GetForBrowserContext(profile_);
if (drive_notification_manager)
drive_notification_manager->RemoveObserver(this);
@@ -363,7 +363,7 @@ void DriveIntegrationService::InitializeAfterMetadataInitialized(
// Register for Google Drive invalidation notifications.
DriveNotificationManager* drive_notification_manager =
- DriveNotificationManagerFactory::GetForProfile(profile_);
+ DriveNotificationManagerFactory::GetForBrowserContext(profile_);
if (drive_notification_manager) {
drive_notification_manager->AddObserver(this);
const bool registered =

Powered by Google App Engine
This is Rietveld 408576698