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

Unified Diff: components/webdata_services/web_data_service_wrapper.cc

Issue 2801513002: [Payments] Add web app manifest section table in SQLite web database (Closed)
Patch Set: Created 3 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_services/DEPS ('k') | no next file » | 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 a8ff689fe4836b1adf07310d24d89418b6f93ea7..bc683746300553922c4efbfc4f11af567694c105 100644
--- a/components/webdata_services/web_data_service_wrapper.cc
+++ b/components/webdata_services/web_data_service_wrapper.cc
@@ -31,6 +31,10 @@
#include "components/password_manager/core/browser/webdata/password_web_data_service_win.h"
#endif
+#if defined(OS_ANDROID)
+#include "components/payments/android/web_app_manifest_section_table.h"
+#endif
+
namespace {
void InitSyncableServicesOnDBThread(
@@ -86,13 +90,17 @@ WebDataServiceWrapper::WebDataServiceWrapper(
// All tables objects that participate in managing the database must
// be added here.
- web_database_->AddTable(base::WrapUnique(new autofill::AutofillTable));
- web_database_->AddTable(base::WrapUnique(new KeywordTable));
+ web_database_->AddTable(base::MakeUnique<autofill::AutofillTable>());
+ web_database_->AddTable(base::MakeUnique<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(base::WrapUnique(new LoginsTable));
- web_database_->AddTable(base::WrapUnique(new TokenServiceTable));
+ web_database_->AddTable(base::MakeUnique<LoginsTable>());
+ web_database_->AddTable(base::MakeUnique<TokenServiceTable>());
+#if defined(OS_ANDROID)
+ web_database_->AddTable(
+ base::MakeUnique<payments::WebAppManifestSectionTable>());
+#endif
web_database_->LoadDatabase();
autofill_web_data_ = new autofill::AutofillWebDataService(
« no previous file with comments | « components/webdata_services/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698