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 439f1cea71a8a777776c37272b0671b1f8146438..472fcc50dca203e4391e82e1c7b17d4ad5d86bec 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 |
@@ -195,7 +195,7 @@ void LocalDiscoveryUIHandler::OnPrivetRegisterClaimToken( |
Profile* profile = Profile::FromWebUI(web_ui()); |
- OAuth2TokenService* token_service = |
+ ProfileOAuth2TokenService* token_service = |
ProfileOAuth2TokenServiceFactory::GetForProfile(profile); |
if (!token_service) { |
@@ -206,6 +206,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)))); |