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

Unified Diff: components/autofill/core/browser/proto/autofill_sync.proto

Issue 2598113002: [Sync] Use a proto to generate AutofillSyncStorageKey's storage keys. (Closed)
Patch Set: Rebased and updated for comments. Created 3 years, 11 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/proto/autofill_sync.proto
diff --git a/components/autofill/core/browser/proto/autofill_sync.proto b/components/autofill/core/browser/proto/autofill_sync.proto
new file mode 100644
index 0000000000000000000000000000000000000000..5ac161c04b561edc13efe619bf83daf0def37ae6
--- /dev/null
+++ b/components/autofill/core/browser/proto/autofill_sync.proto
@@ -0,0 +1,17 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+
+package autofill;
+
+// Used to convert between autofill::AutofillKey and a std::string that can be
+// passed to sync as storage key to uniquely identify an entity of ModelType
+// syncer::AUTOFILL.
+message AutofillSyncStorageKey {
+ required string name = 1;
Mathieu 2017/01/06 01:51:29 I don't particularly like "required" because I bel
skym 2017/01/06 18:29:04 I didn't realize that required was generally frown
+ required string value = 2;
+}

Powered by Google App Engine
This is Rietveld 408576698