| 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 f58167b82fc049860d684cec0003515c3d7a8080..5db8c6eedf42d38ccb1f3be5c3ae2128becc0b07 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
|
| @@ -173,7 +173,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) {
|
| @@ -184,6 +184,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))));
|
|
|