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

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: Added test case Created 6 years, 4 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..c46c7200237c8646552a84a481bc4655a3d23e8f 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,19 @@ 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)) {
+ NOTREACHED();
Ilya Sherman 2014/08/20 05:47:42 nit: I think it's possible and reasonable for this
Nikhil 2014/08/20 11:29:18 Done.
+ 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