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

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

Issue 315683003: Add a chrome://flags entry for the Answers in Suggest experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
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 1810 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 kOsAll, 1821 kOsAll,
1822 SINGLE_VALUE_TYPE(extensions::switches::kEnableScriptsRequireAction) 1822 SINGLE_VALUE_TYPE(extensions::switches::kEnableScriptsRequireAction)
1823 }, 1823 },
1824 { 1824 {
1825 "enable-harfbuzz-rendertext", 1825 "enable-harfbuzz-rendertext",
1826 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_NAME, 1826 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_NAME,
1827 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_DESCRIPTION, 1827 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_DESCRIPTION,
1828 kOsDesktop, 1828 kOsDesktop,
1829 SINGLE_VALUE_TYPE(switches::kEnableHarfBuzzRenderText) 1829 SINGLE_VALUE_TYPE(switches::kEnableHarfBuzzRenderText)
1830 }, 1830 },
1831 #if defined(OS_ANDROID)
1832 {
1833 "enable-answers-in-suggest",
1834 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_NAME,
1835 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_DESCRIPTION,
1836 kOsAndroid,
1837 SINGLE_VALUE_TYPE(switches::kEnableAnswersInSuggest)
1838 },
1839 #endif
1831 }; 1840 };
1832 1841
1833 const Experiment* experiments = kExperiments; 1842 const Experiment* experiments = kExperiments;
1834 size_t num_experiments = arraysize(kExperiments); 1843 size_t num_experiments = arraysize(kExperiments);
1835 1844
1836 // Stores and encapsulates the little state that about:flags has. 1845 // Stores and encapsulates the little state that about:flags has.
1837 class FlagsState { 1846 class FlagsState {
1838 public: 1847 public:
1839 FlagsState() : needs_restart_(false) {} 1848 FlagsState() : needs_restart_(false) {}
1840 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, 1849 void ConvertFlagsToSwitches(FlagsStorage* flags_storage,
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
2341 } 2350 }
2342 2351
2343 const Experiment* GetExperiments(size_t* count) { 2352 const Experiment* GetExperiments(size_t* count) {
2344 *count = num_experiments; 2353 *count = num_experiments;
2345 return experiments; 2354 return experiments;
2346 } 2355 }
2347 2356
2348 } // namespace testing 2357 } // namespace testing
2349 2358
2350 } // namespace about_flags 2359 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698