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

Unified Diff: chrome/browser/profiles/profile_downloader.cc

Issue 165543004: Revert of Replace PO2TS::GetPrimaryAccountId() with SMB::GetAuthenticatedAccountId. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/profiles/profile_downloader.cc
diff --git a/chrome/browser/profiles/profile_downloader.cc b/chrome/browser/profiles/profile_downloader.cc
index 7248e53518fadd49002e1fd32e706589a469fe6b..9a7a7154cd45407dc904f71e0a7ec4aa853f51de 100644
--- a/chrome/browser/profiles/profile_downloader.cc
+++ b/chrome/browser/profiles/profile_downloader.cc
@@ -19,8 +19,6 @@
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/signin/profile_oauth2_token_service.h"
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
-#include "chrome/browser/signin/signin_manager.h"
-#include "chrome/browser/signin/signin_manager_factory.h"
#include "content/public/browser/browser_thread.h"
#include "google_apis/gaia/gaia_constants.h"
#include "google_apis/gaia/gaia_urls.h"
@@ -235,11 +233,8 @@
return;
}
- SigninManagerBase* signin_manager =
- SigninManagerFactory::GetForProfile(delegate_->GetBrowserProfile());
account_id_ =
- account_id.empty() ?
- signin_manager->GetAuthenticatedAccountId() : account_id;
+ account_id.empty() ? service->GetPrimaryAccountId() : account_id;
if (service->RefreshTokenIsAvailable(account_id_)) {
StartFetchingOAuth2AccessToken();
} else {

Powered by Google App Engine
This is Rietveld 408576698