| // Copyright 2014 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. |
| #include "components/omnibox/autocomplete_match_type.h" |
| #include "base/basictypes.h" |
| std::string AutocompleteMatchType::ToString(AutocompleteMatchType::Type type) { |
| const char* strings[] = { |
| "search-suggest-infinite", |
| "search-suggest-personalized", |
| "search-suggest-profile", |
| "navsuggest-personalized", |
| "search-calculator-answer", |
| static_assert(arraysize(strings) == AutocompleteMatchType::NUM_TYPES, |
| "strings array must have NUM_TYPES elements"); |