Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6244)

Unified Diff: chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.cc

Issue 2403773002: Remove stl_util's STLDeleteContainerPointers from autofill. (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
}

Powered by Google App Engine
This is Rietveld 408576698