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

Unified Diff: components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc

Issue 480953002: Implement "Autofill form data" import for Firefox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback (simplify Read method) Created 6 years, 3 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: components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc
diff --git a/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc b/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc
index ad6c132a148410b6c4594658aa7d1885f0de357d..5b645793035bafb7d2e45ac566402de0062d4723 100644
--- a/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc
+++ b/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc
@@ -245,6 +245,17 @@ scoped_ptr<WDTypedResult> AutofillWebDataBackendImpl::GetAutofillProfiles(
base::Unretained(this))));
}
+WebDatabase::State AutofillWebDataBackendImpl::UpdateAutofillEntries(
+ const std::vector<autofill::AutofillEntry>& autofill_entries,
+ WebDatabase* db) {
+ DCHECK(db_thread_->BelongsToCurrentThread());
+ if (!AutofillTable::FromWebDatabase(db)
+ ->UpdateAutofillEntries(autofill_entries))
+ return WebDatabase::COMMIT_NOT_NEEDED;
+
+ return WebDatabase::COMMIT_NEEDED;
+}
+
WebDatabase::State AutofillWebDataBackendImpl::AddCreditCard(
const CreditCard& credit_card, WebDatabase* db) {
DCHECK(db_thread_->BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698