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

Unified Diff: android_webview/browser/aw_form_database_service.cc

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard Created 4 years, 9 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 dfdfdb5dcc42eb8bb1b0036a11a6d88b694e1878..3370cae7e98f9bca6652a926c0c8587af6942984 100644
--- a/android_webview/browser/aw_form_database_service.cc
+++ b/android_webview/browser/aw_form_database_service.cc
@@ -5,6 +5,7 @@
#include "android_webview/browser/aw_form_database_service.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "base/synchronization/waitable_event.h"
#include "components/autofill/core/browser/webdata/autofill_table.h"
#include "components/webdata/common/webdata_constants.h"
@@ -30,7 +31,7 @@ AwFormDatabaseService::AwFormDatabaseService(const base::FilePath path) {
web_database_ = new WebDatabaseService(path.Append(kWebDataFilename),
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB));
- web_database_->AddTable(make_scoped_ptr(new autofill::AutofillTable));
+ web_database_->AddTable(base::WrapUnique(new autofill::AutofillTable));
web_database_->LoadDatabase();
autofill_data_ = new autofill::AutofillWebDataService(

Powered by Google App Engine
This is Rietveld 408576698