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

Unified Diff: components/webdata_services/web_data_service_wrapper.cc

Issue 1917673002: Convert //components/[u-z]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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 | « components/webdata/common/web_database_service.cc ('k') | components/webp_transcode/webp_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webdata_services/web_data_service_wrapper.cc
diff --git a/components/webdata_services/web_data_service_wrapper.cc b/components/webdata_services/web_data_service_wrapper.cc
index 398660f3f39811d0ccf0ce49156cf996075aab33..1b9b41ab263ca04b4cbb546c154a6c510135fdc2 100644
--- a/components/webdata_services/web_data_service_wrapper.cc
+++ b/components/webdata_services/web_data_service_wrapper.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/callback.h"
#include "base/files/file_path.h"
+#include "base/memory/ptr_util.h"
#include "base/single_thread_task_runner.h"
#include "build/build_config.h"
#include "components/autofill/core/browser/webdata/autocomplete_syncable_service.h"
@@ -76,13 +77,13 @@ WebDataServiceWrapper::WebDataServiceWrapper(
// All tables objects that participate in managing the database must
// be added here.
- web_database_->AddTable(make_scoped_ptr(new autofill::AutofillTable));
- web_database_->AddTable(make_scoped_ptr(new KeywordTable));
+ web_database_->AddTable(base::WrapUnique(new autofill::AutofillTable));
+ web_database_->AddTable(base::WrapUnique(new KeywordTable));
// TODO(mdm): We only really need the LoginsTable on Windows for IE7 password
// access, but for now, we still create it on all platforms since it deletes
// the old logins table. We can remove this after a while, e.g. in M22 or so.
- web_database_->AddTable(make_scoped_ptr(new LoginsTable));
- web_database_->AddTable(make_scoped_ptr(new TokenServiceTable));
+ web_database_->AddTable(base::WrapUnique(new LoginsTable));
+ web_database_->AddTable(base::WrapUnique(new TokenServiceTable));
web_database_->LoadDatabase();
autofill_web_data_ = new autofill::AutofillWebDataService(
« no previous file with comments | « components/webdata/common/web_database_service.cc ('k') | components/webp_transcode/webp_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698