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

Unified Diff: android_webview/browser/aw_form_database_service.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: android_webview/browser/aw_form_database_service.cc
diff --git a/android_webview/browser/aw_form_database_service.cc b/android_webview/browser/aw_form_database_service.cc
index 6096e376003aabe654678be3bd1aab24d7cbb583..2c8d235b43420862e1e877d3c1d821db07f5cd63 100644
--- a/android_webview/browser/aw_form_database_service.cc
+++ b/android_webview/browser/aw_form_database_service.cc
@@ -106,14 +106,13 @@ void AwFormDatabaseService::HasFormDataImpl(
void AwFormDatabaseService::OnWebDataServiceRequestDone(
WebDataServiceBase::Handle h,
- const WDTypedResult* result) {
-
+ std::unique_ptr<WDTypedResult> result) {
DCHECK_CURRENTLY_ON(BrowserThread::DB);
bool has_form_data = false;
if (result) {
DCHECK_EQ(AUTOFILL_VALUE_RESULT, result->GetType());
const WDResult<int>* autofill_result =
- static_cast<const WDResult<int>*>(result);
+ static_cast<const WDResult<int>*>(result.get());
has_form_data = autofill_result->GetValue() > 0;
}
QueryMap::const_iterator it = result_map_.find(h);
« no previous file with comments | « android_webview/browser/aw_form_database_service.h ('k') | chrome/browser/autofill/form_structure_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698