1 // Copyright 2013 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 "chrome/common/autocomplete_match_type.h"
7 #include "base/basictypes.h"
10 std::string
AutocompleteMatchType::ToString(AutocompleteMatchType::Type type
) {
11 const char* strings
[] = {
18 "search-what-you-typed",
21 "search-suggest-entity",
22 "search-suggest-infinite",
23 "search-suggest-personalized",
24 "search-suggest-profile",
25 "search-other-engine",
30 COMPILE_ASSERT(arraysize(strings
) == AutocompleteMatchType::NUM_TYPES
,
31 strings_array_must_match_type_enum
);