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

Unified Diff: android_webview/browser/aw_form_database_service.cc

Issue 16154031: Un-refcount AutofillWebData and TokenWebData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 7 years, 6 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
« no previous file with comments | « android_webview/browser/aw_form_database_service.h ('k') | android_webview/native/aw_form_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d08ed0e2da2301372c2b9187b80a974f77b36d89..4958cb8f643643abb8e6cf333a365c021b5e80ef 100644
--- a/android_webview/browser/aw_form_database_service.cc
+++ b/android_webview/browser/aw_form_database_service.cc
@@ -34,8 +34,8 @@ AwFormDatabaseService::AwFormDatabaseService(const base::FilePath path)
l10n_util::GetDefaultLocale())));
web_database_->LoadDatabase();
- autofill_data_ = new autofill::AutofillWebDataService(
- web_database_, base::Bind(&DatabaseErrorCallback));
+ autofill_data_ .reset(new autofill::AutofillWebDataService(
+ web_database_, base::Bind(&DatabaseErrorCallback)));
autofill_data_->Init();
}
@@ -58,9 +58,9 @@ void AwFormDatabaseService::CancelPendingQuery() {
}
}
-scoped_refptr<autofill::AutofillWebDataService>
+autofill::AutofillWebDataService*
AwFormDatabaseService::get_autofill_webdata_service() {
- return autofill_data_;
+ return autofill_data_.get();
}
void AwFormDatabaseService::ClearFormData() {
« no previous file with comments | « android_webview/browser/aw_form_database_service.h ('k') | android_webview/native/aw_form_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698