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/autocomplete_sync_bridge.h

Issue 2582713003: [USS] Impelementation for GetData and GetAllData (Closed)
Patch Set: skym review Created 4 years 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/autocomplete_sync_bridge.h
diff --git a/components/autofill/core/browser/webdata/autocomplete_sync_bridge.h b/components/autofill/core/browser/webdata/autocomplete_sync_bridge.h
index 2a575ed9c500f213ce8c329f1b027c75c18a2bd2..d45b1ae2d74bb5ae5d5be5ef5275ca71c619282e 100644
--- a/components/autofill/core/browser/webdata/autocomplete_sync_bridge.h
+++ b/components/autofill/core/browser/webdata/autocomplete_sync_bridge.h
@@ -65,9 +65,20 @@ class AutocompleteSyncBridge : public base::SupportsUserData::Data,
void AutofillEntriesChanged(const AutofillChangeList& changes) override;
private:
+ friend class AutocompleteSyncBridgeTest;
+
// Returns the table associated with the |web_data_backend_|.
AutofillTable* GetAutofillTable() const;
+ std::string GetStorageKeyFromAutofillEntry(
+ const autofill::AutofillEntry& entry);
+
+ static std::string FormatStorageKey(const std::string& name,
+ const std::string& value);
+
+ static AutofillEntry CreateAutofillEntry(
+ const sync_pb::AutofillSpecifics& autofill_specifics);
+
base::ThreadChecker thread_checker_;
// AutocompleteSyncBridge is owned by |web_data_backend_| through

Powered by Google App Engine
This is Rietveld 408576698