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

Unified Diff: chrome/browser/chromeos/policy/user_cloud_policy_token_forwarder.cc

Issue 617183003: Make sure GetAuthenticatedAccountId() returns a canonicalized id. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Hui's comments, fix cvox tests Created 6 years, 2 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/policy/user_cloud_policy_token_forwarder.cc
diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_token_forwarder.cc b/chrome/browser/chromeos/policy/user_cloud_policy_token_forwarder.cc
index 52c0916341e1923d41b1444cd76b5666a7a3a24e..fe8f64e1c34f0f58c1af96516074c23fe334a905 100644
--- a/chrome/browser/chromeos/policy/user_cloud_policy_token_forwarder.cc
+++ b/chrome/browser/chromeos/policy/user_cloud_policy_token_forwarder.cc
@@ -80,7 +80,8 @@ void UserCloudPolicyTokenForwarder::Initialize() {
// login whitelist is available, there is no reason to fetch the OAuth2 token
// here if the client is already registered, so check and bail out here.
- if (token_service_->RefreshTokenIsAvailable(
+ if (signin_manager_->IsAuthenticated() &&
Joao da Silva 2014/10/08 13:19:17 This is ChromeOS code, so AFAICT this is always tr
+ token_service_->RefreshTokenIsAvailable(
signin_manager_->GetAuthenticatedAccountId()))
RequestAccessToken();
else

Powered by Google App Engine
This is Rietveld 408576698