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

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

Issue 2829853008: Stores server card as a full server card when upload to server succeeds. (Closed)
Patch Set: Renames AddServerCreditCard to AddFullServerCreditCard. Adds DCHECK to verify that we are in a tran… 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
Index: components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h
diff --git a/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h b/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h
index 9badefeb70ce60e0cb741316f8f41f94f2df5abd..4a995a4689c5dda19ff11058e54b642b5e150612 100644
--- a/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h
+++ b/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h
@@ -140,6 +140,10 @@ class AutofillWebDataBackendImpl
WebDatabase::State RemoveCreditCard(const std::string& guid,
WebDatabase* db);
+ // Adds a full server credit card to the web database.
+ WebDatabase::State AddFullServerCreditCard(const CreditCard& credit_card,
+ WebDatabase* db);
+
// Returns a vector of local/server credit cards from the web database.
std::unique_ptr<WDTypedResult> GetCreditCards(WebDatabase* db);
std::unique_ptr<WDTypedResult> GetServerCreditCards(WebDatabase* db);

Powered by Google App Engine
This is Rietveld 408576698