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, |