| 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 daca1213c92d1c49ea6d3f38da3330e27f122fb9..96e50649e52ef442cfef31673b380500ca9c6963 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
|
| @@ -198,7 +198,7 @@ void LocalDiscoveryUIHandler::OnPrivetRegisterClaimToken(
|
| Profile* profile = Profile::FromWebUI(web_ui());
|
|
|
| if (current_register_user_index_ == kAccountIndexUseOAuth2) {
|
| - OAuth2TokenService* token_service =
|
| + ProfileOAuth2TokenService* token_service =
|
| ProfileOAuth2TokenServiceFactory::GetForProfile(profile);
|
|
|
| if (!token_service) {
|
| @@ -209,6 +209,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))));
|
|
|