Update V8 to version 4.5.11.
[chromium-blink-merge.git] / components / omnibox / autocomplete_match_type.cc
blobe2ee0ab1778dcf031e3fea70d2a70c496d9466ba
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/omnibox/autocomplete_match_type.h"
7 #include "base/basictypes.h"
9 // static
10 std::string AutocompleteMatchType::ToString(AutocompleteMatchType::Type type) {
11 const char* strings[] = {
12 "url-what-you-typed",
13 "history-url",
14 "history-title",
15 "history-body",
16 "history-keyword",
17 "navsuggest",
18 "search-what-you-typed",
19 "search-history",
20 "search-suggest",
21 "search-suggest-entity",
22 "search-suggest-infinite",
23 "search-suggest-personalized",
24 "search-suggest-profile",
25 "search-other-engine",
26 "extension-app",
27 "contact",
28 "bookmark-title",
29 "navsuggest-personalized",
30 "search-calculator-answer",
32 static_assert(arraysize(strings) == AutocompleteMatchType::NUM_TYPES,
33 "strings array must have NUM_TYPES elements");
34 return strings[type];