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

Unified Diff: chrome/browser/ui/app_list/speech_auth_helper.cc

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/ui/app_list/speech_auth_helper.cc
diff --git a/chrome/browser/ui/app_list/speech_auth_helper.cc b/chrome/browser/ui/app_list/speech_auth_helper.cc
index 63a3e8fbad32c9adebdd396b40fbf13d96153fcc..15c557629f13021831fb4327f3d7d1a74078b9e9 100644
--- a/chrome/browser/ui/app_list/speech_auth_helper.cc
+++ b/chrome/browser/ui/app_list/speech_auth_helper.cc
@@ -83,9 +83,9 @@ void SpeechAuthHelper::OnGetTokenFailure(
base::TimeDelta::FromSeconds(kMinTokenRefreshDelaySeconds));
}
-void SpeechAuthHelper::OnRefreshTokenAvailable(const std::string& account_id) {
+void SpeechAuthHelper::OnRefreshTokenAvailable(const std::string& user_id) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- if (authenticated_account_id_ == account_id)
+ if (authenticated_account_id_ == user_id)
FetchAuthToken();
}

Powered by Google App Engine
This is Rietveld 408576698