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

Unified Diff: chrome/browser/local_discovery/privet_confirm_api_flow.cc

Issue 23382008: Making OAuth2TokenService multi-login aware, updating callers, minor fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CR for patch 12 and one more Android issue Created 7 years, 3 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/local_discovery/privet_confirm_api_flow.cc
diff --git a/chrome/browser/local_discovery/privet_confirm_api_flow.cc b/chrome/browser/local_discovery/privet_confirm_api_flow.cc
index 1917e4a7b28267be269f13fa78e3a333bf158cad..4ba47535668187abbcfa3db0d98706cb3e93c794 100644
--- a/chrome/browser/local_discovery/privet_confirm_api_flow.cc
+++ b/chrome/browser/local_discovery/privet_confirm_api_flow.cc
@@ -22,10 +22,12 @@ const char kCookieURLFormat[] = "%s&xsrf=%s&user=%d";
PrivetConfirmApiCallFlow::PrivetConfirmApiCallFlow(
net::URLRequestContextGetter* request_context,
OAuth2TokenService* token_service,
+ const std::string& account_id,
const GURL& automated_claim_url,
const ResponseCallback& callback)
: request_context_(request_context),
token_service_(token_service),
+ account_id_(account_id),
automated_claim_url_(automated_claim_url),
callback_(callback) {
}
@@ -51,7 +53,8 @@ void PrivetConfirmApiCallFlow::Start() {
if (UseOAuth2()) {
OAuth2TokenService::ScopeSet oauth_scopes;
oauth_scopes.insert(cloud_print::kCloudPrintAuth);
- oauth_request_ = token_service_->StartRequest(oauth_scopes, this);
+ oauth_request_ = token_service_->StartRequest(account_id_, oauth_scopes,
+ this);
} else {
GURL cookie_url(
base::StringPrintf(kCookieURLFormat,

Powered by Google App Engine
This is Rietveld 408576698