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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 2889823002: [omnibox] Added 'OmniboxTailSuggestions' flag (Closed)
Patch Set: Added histogram enumeration Created 3 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | chrome/browser/flag_descriptions.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 2796 matching lines...) Expand 10 before | Expand all | Expand 10 after
2807 {"new-omnibox-answer-types", flag_descriptions::kNewOmniboxAnswerTypesName, 2807 {"new-omnibox-answer-types", flag_descriptions::kNewOmniboxAnswerTypesName,
2808 flag_descriptions::kNewOmniboxAnswerTypesDescription, kOsAll, 2808 flag_descriptions::kNewOmniboxAnswerTypesDescription, kOsAll,
2809 FEATURE_VALUE_TYPE(omnibox::kNewOmniboxAnswerTypes)}, 2809 FEATURE_VALUE_TYPE(omnibox::kNewOmniboxAnswerTypes)},
2810 2810
2811 #if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_MACOSX) || \ 2811 #if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_MACOSX) || \
2812 defined(OS_WIN) 2812 defined(OS_WIN)
2813 {"omnibox-entity-suggestions", 2813 {"omnibox-entity-suggestions",
2814 flag_descriptions::kOmniboxEntitySuggestionsName, 2814 flag_descriptions::kOmniboxEntitySuggestionsName,
2815 flag_descriptions::kOmniboxEntitySuggestionsDescription, kOsDesktop, 2815 flag_descriptions::kOmniboxEntitySuggestionsDescription, kOsDesktop,
2816 FEATURE_VALUE_TYPE(omnibox::kOmniboxEntitySuggestions)}, 2816 FEATURE_VALUE_TYPE(omnibox::kOmniboxEntitySuggestions)},
2817 {"omnibox-tail-suggestions", flag_descriptions::kOmniboxTailSuggestionsName,
Mark P 2017/05/31 23:17:13 side comment: putting this here is fine with me, t
Kevin Bailey 2017/06/01 14:32:42 I would prefer putting it here, both for locality
Mark P 2017/06/01 16:23:58 Acknowledged.
2818 flag_descriptions::kOmniboxTailSuggestionsDescription, kOsDesktop,
2819 FEATURE_VALUE_TYPE(omnibox::kOmniboxTailSuggestions)},
2817 {"enable-new-app-menu-icon", flag_descriptions::kEnableNewAppMenuIconName, 2820 {"enable-new-app-menu-icon", flag_descriptions::kEnableNewAppMenuIconName,
2818 flag_descriptions::kEnableNewAppMenuIconDescription, kOsDesktop, 2821 flag_descriptions::kEnableNewAppMenuIconDescription, kOsDesktop,
2819 SINGLE_VALUE_TYPE(switches::kEnableNewAppMenuIcon)}, 2822 SINGLE_VALUE_TYPE(switches::kEnableNewAppMenuIcon)},
2820 #endif // defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_MACOSX) || 2823 #endif // defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_MACOSX) ||
2821 // defined(OS_WIN) 2824 // defined(OS_WIN)
2822 2825
2823 #if defined(OS_ANDROID) 2826 #if defined(OS_ANDROID)
2824 {"enable-custom-feedback-ui", 2827 {"enable-custom-feedback-ui",
2825 flag_descriptions::kEnableCustomFeedbackUiName, 2828 flag_descriptions::kEnableCustomFeedbackUiName,
2826 flag_descriptions::kEnableCustomFeedbackUiDescription, kOsAndroid, 2829 flag_descriptions::kEnableCustomFeedbackUiDescription, kOsAndroid,
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
3258 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 3261 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
3259 3262
3260 const FeatureEntry* GetFeatureEntries(size_t* count) { 3263 const FeatureEntry* GetFeatureEntries(size_t* count) {
3261 *count = arraysize(kFeatureEntries); 3264 *count = arraysize(kFeatureEntries);
3262 return kFeatureEntries; 3265 return kFeatureEntries;
3263 } 3266 }
3264 3267
3265 } // namespace testing 3268 } // namespace testing
3266 3269
3267 } // namespace about_flags 3270 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | chrome/browser/flag_descriptions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698