| Index: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
|
| diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
|
| index e06844788815180d1c51765124e96524b1e30af6..49362c64bd0db24c3c67fcff8cfacc7f70316f05 100644
|
| --- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
|
| +++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
|
| @@ -140,13 +140,14 @@ void LocalDiscoveryUIHandler::HandleCancelRegistration(
|
| void LocalDiscoveryUIHandler::HandleRequestPrinterList(
|
| const base::ListValue* args) {
|
| Profile* profile = Profile::FromWebUI(web_ui());
|
| - OAuth2TokenService* token_service =
|
| + ProfileOAuth2TokenService* token_service =
|
| ProfileOAuth2TokenServiceFactory::GetForProfile(profile);
|
|
|
| cloud_print_printer_list_.reset(new CloudPrintPrinterList(
|
| profile->GetRequestContext(),
|
| GetCloudPrintBaseUrl(),
|
| token_service,
|
| + token_service->GetPrimaryAccountId(),
|
| this));
|
| cloud_print_printer_list_->Start();
|
| }
|
| @@ -204,7 +205,7 @@ void LocalDiscoveryUIHandler::OnPrivetRegisterClaimToken(
|
|
|
| Profile* profile = Profile::FromWebUI(web_ui());
|
|
|
| - OAuth2TokenService* token_service =
|
| + ProfileOAuth2TokenService* token_service =
|
| ProfileOAuth2TokenServiceFactory::GetForProfile(profile);
|
|
|
| if (!token_service) {
|
| @@ -215,6 +216,7 @@ void LocalDiscoveryUIHandler::OnPrivetRegisterClaimToken(
|
| confirm_api_call_flow_.reset(new PrivetConfirmApiCallFlow(
|
| profile->GetRequestContext(),
|
| token_service,
|
| + token_service->GetPrimaryAccountId(),
|
| automated_claim_url,
|
| base::Bind(&LocalDiscoveryUIHandler::OnConfirmDone,
|
| base::Unretained(this))));
|
|
|