Index: chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.cc |
diff --git a/chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.cc b/chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.cc |
index 0e2c788cb7e7813a34ff22086abbeb9bfccc574f..6a275d9a70133b0ffa42e6cd1875c5bfe8ced625 100644 |
--- a/chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.cc |
+++ b/chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.cc |
@@ -272,9 +272,9 @@ void MutableProfileOAuth2TokenServiceDelegate::LoadCredentials( |
void MutableProfileOAuth2TokenServiceDelegate::OnWebDataServiceRequestDone( |
WebDataServiceBase::Handle handle, |
- const WDTypedResult* result) { |
+ std::unique_ptr<WDTypedResult> result) { |
VLOG(1) << "MutablePO2TS::OnWebDataServiceRequestDone. Result type: " |
- << (result == nullptr ? -1 : (int)result->GetType()); |
+ << (result.get() == nullptr ? -1 : (int)result->GetType()); |
// TODO(robliao): Remove ScopedTracker below once https://crbug.com/422460 is |
// fixed. |
@@ -289,7 +289,7 @@ void MutableProfileOAuth2TokenServiceDelegate::OnWebDataServiceRequestDone( |
DCHECK(result->GetType() == TOKEN_RESULT); |
const WDResult<std::map<std::string, std::string>>* token_result = |
static_cast<const WDResult<std::map<std::string, std::string>>*>( |
- result); |
+ result.get()); |
LoadAllCredentialsIntoMemory(token_result->GetValue()); |
} |