Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: chrome/common/autocomplete_match_type.cc

Issue 190063004: chromeos: Delete old, unused contacts code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: undo unwanted indenting changes Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/autocomplete_match_type.h" 5 #include "chrome/common/autocomplete_match_type.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 8
9 // static 9 // static
10 std::string AutocompleteMatchType::ToString(AutocompleteMatchType::Type type) { 10 std::string AutocompleteMatchType::ToString(AutocompleteMatchType::Type type) {
11 const char* strings[] = { 11 const char* strings[] = {
12 "url-what-you-typed", 12 "url-what-you-typed",
13 "history-url", 13 "history-url",
14 "history-title", 14 "history-title",
15 "history-body", 15 "history-body",
16 "history-keyword", 16 "history-keyword",
17 "navsuggest", 17 "navsuggest",
18 "search-what-you-typed", 18 "search-what-you-typed",
19 "search-history", 19 "search-history",
20 "search-suggest", 20 "search-suggest",
21 "search-suggest-entity", 21 "search-suggest-entity",
22 "search-suggest-infinite", 22 "search-suggest-infinite",
23 "search-suggest-personalized", 23 "search-suggest-personalized",
24 "search-suggest-profile", 24 "search-suggest-profile",
25 "search-other-engine", 25 "search-other-engine",
26 "extension-app", 26 "extension-app",
27 "contact",
Mark P 2014/03/07 17:20:14 You're going to revert this change to this file af
Daniel Erat 2014/03/07 21:52:57 Done.
28 "bookmark-title", 27 "bookmark-title",
29 }; 28 };
30 COMPILE_ASSERT(arraysize(strings) == AutocompleteMatchType::NUM_TYPES, 29 COMPILE_ASSERT(arraysize(strings) == AutocompleteMatchType::NUM_TYPES,
31 strings_array_must_match_type_enum); 30 strings_array_must_match_type_enum);
32 return strings[type]; 31 return strings[type];
33 } 32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698