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

Unified Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 9169096: Remove a bunch of GetProfileSyncService callers to use the new factory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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/login/login_utils.cc
diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
index e3ef041327e7d885ee675749552f89c140f64d98..147ceb715b63f3638fd9395f8456a9637fba075e 100644
--- a/chrome/browser/chromeos/login/login_utils.cc
+++ b/chrome/browser/chromeos/login/login_utils.cc
@@ -54,6 +54,7 @@
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/signin/token_service.h"
#include "chrome/browser/sync/profile_sync_service.h"
+#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/ui/browser_init.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
@@ -910,7 +911,8 @@ void LoginUtilsImpl::StartSignedInServices(
initialized = true;
// Pass the updated passphrase to the sync service for use in decrypting
// data encrypted with the user's GAIA password.
- ProfileSyncService* sync_service = user_profile->GetProfileSyncService();
+ ProfileSyncService* sync_service(
+ ProfileSyncServiceFactory::GetInstance()->GetForProfile(user_profile);
Andrew T Wilson (Slow) 2012/01/26 23:09:09 Does this compile? I don't see a closing paren for
if (sync_service)
sync_service->SetPassphrase(password_, false);
}

Powered by Google App Engine
This is Rietveld 408576698