summaryrefslogtreecommitdiffstats
path: root/chrome/common/metrics
diff options
context:
space:
mode:
authorderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-12 03:32:06 +0000
committerderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-12 03:32:06 +0000
commitdbacefbdc2e432394a032098c511bcdac3ebde26 (patch)
tree27019f25204175c67aef4aeee13998f5dc1c854e /chrome/common/metrics
parentd0436eeaed89a795db51ae63996fa551458b0d77 (diff)
downloadchromium_src-dbacefbdc2e432394a032098c511bcdac3ebde26.zip
chromium_src-dbacefbdc2e432394a032098c511bcdac3ebde26.tar.gz
chromium_src-dbacefbdc2e432394a032098c511bcdac3ebde26.tar.bz2
autocomplete: Add ContactProvider.
This adds an AutocompleteProvider implementation that searches through the user's contacts. It will eventually be used to provide results in the Chrome OS app list. ContactProvider built only on Chrome OS at the moment (as that's also the only platform where the rest of the contacts code is built) and is not instantiated outside of tests. I'm also punting on ranking the results; all matches get a relevance of 1. BUG=141877 TEST=none TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10907066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156224 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/metrics')
-rw-r--r--chrome/common/metrics/proto/omnibox_event.proto2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/common/metrics/proto/omnibox_event.proto b/chrome/common/metrics/proto/omnibox_event.proto
index 2c2bc99..60e5590 100644
--- a/chrome/common/metrics/proto/omnibox_event.proto
+++ b/chrome/common/metrics/proto/omnibox_event.proto
@@ -85,6 +85,7 @@ message OmniboxEventProto {
BUILTIN = 6; // Built-in URLs, such as chrome://version
SHORTCUTS = 7; // Recently selected omnibox suggestions
EXTENSION_APPS = 8; // Custom suggestions from extensions and/or apps
+ CONTACT = 9; // The user's contacts
}
// The result set displayed on the completion popup
@@ -114,6 +115,7 @@ message OmniboxEventProto {
SEARCH_OTHER_ENGINE = 10; // A search with a non-default engine
EXTENSION_APP = 11; // An Extension App with a title/url that
// contains the input
+ CONTACT = 12; // One of the user's contacts
};
optional ResultType result_type = 2;