summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-12 22:16:09 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-12 22:16:09 +0000
commit12ec79f1936d9eedc2c6691ef73bbc3ca7b4bc4a (patch)
tree813d09a37caecb6c80a4ba3019b77c8646b43f91 /chrome/test/automation
parenta0edd606ddead87a3330244156302445d0b83012 (diff)
downloadchromium_src-12ec79f1936d9eedc2c6691ef73bbc3ca7b4bc4a.zip
chromium_src-12ec79f1936d9eedc2c6691ef73bbc3ca7b4bc4a.tar.gz
chromium_src-12ec79f1936d9eedc2c6691ef73bbc3ca7b4bc4a.tar.bz2
Omnibox metrics logging patch splitout, part 5: Add TypeToString() helpers. One of these is unused for the moment.
Review URL: http://codereview.chromium.org/10657 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation')
-rw-r--r--chrome/test/automation/autocomplete_edit_proxy.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/chrome/test/automation/autocomplete_edit_proxy.h b/chrome/test/automation/autocomplete_edit_proxy.h
index 8b6d766..87c8803 100644
--- a/chrome/test/automation/autocomplete_edit_proxy.h
+++ b/chrome/test/automation/autocomplete_edit_proxy.h
@@ -30,23 +30,8 @@ struct AutocompleteMatchData {
contents(match.contents),
description(match.description),
is_history_what_you_typed_match(match.is_history_what_you_typed_match),
+ type(AutocompleteMatch::TypeToString(match.type)),
starred(match.starred) {
- switch (match.type) {
- case AutocompleteMatch::URL:
- type = "URL";
- break;
- case AutocompleteMatch::KEYWORD:
- type = "KEYWORD";
- break;
- case AutocompleteMatch::SEARCH:
- type = "SEARCH";
- break;
- case AutocompleteMatch::HISTORY_SEARCH:
- type = "HISTORY";
- break;
- default:
- NOTREACHED();
- }
}
std::string provider_name;