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

Unified Diff: chrome/browser/chromeos/contacts/contact.proto

Issue 10916304: autocomplete: Make ContactProvider rank contacts by affinity (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: improve error messages Created 8 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
« no previous file with comments | « chrome/browser/autocomplete/contact_provider_chromeos_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/contacts/contact.proto
diff --git a/chrome/browser/chromeos/contacts/contact.proto b/chrome/browser/chromeos/contacts/contact.proto
index 0cd6705241424adbd7852cdaff8e6ee66429752f..3d605e2283c083da1dbb0d3efbe14843434e2189 100644
--- a/chrome/browser/chromeos/contacts/contact.proto
+++ b/chrome/browser/chromeos/contacts/contact.proto
@@ -14,7 +14,7 @@ package contacts;
// https://developers.google.com/gdata/docs/2.0/elements#gdContactKind
// All strings are UTF-8 with Unicode byte order marks stripped out.
message Contact {
- // Next ID to use: 15
+ // Next ID to use: 16
// Provider-assigned unique identifier.
optional string contact_id = 1;
@@ -26,6 +26,10 @@ message Contact {
// Has the contact been deleted recently within the upstream provider?
optional bool deleted = 3 [default = false];
+ // Affinity between the user and this contact, in the range [0.0, 1.0].
+ // Unset if the affinity is unknown.
+ optional float affinity = 15;
+
// Taken from https://developers.google.com/gdata/docs/2.0/elements#gdName.
optional string full_name = 4;
optional string given_name = 5;
« no previous file with comments | « chrome/browser/autocomplete/contact_provider_chromeos_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698