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

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

Issue 1155673002: Omnibox - Add About Flag to Reverse Title and URLs in the Dropdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac and add command line flag to histograms.xml Created 5 years, 7 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
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 2402 matching lines...) Expand 10 before | Expand all | Expand 10 after
2413 }, 2413 },
2414 #if defined(OS_WIN) 2414 #if defined(OS_WIN)
2415 { 2415 {
2416 "try-supported-channel-layouts", 2416 "try-supported-channel-layouts",
2417 IDS_FLAGS_TRY_SUPPORTED_CHANNEL_LAYOUTS_NAME, 2417 IDS_FLAGS_TRY_SUPPORTED_CHANNEL_LAYOUTS_NAME,
2418 IDS_FLAGS_TRY_SUPPORTED_CHANNEL_LAYOUTS_DESCRIPTION, 2418 IDS_FLAGS_TRY_SUPPORTED_CHANNEL_LAYOUTS_DESCRIPTION,
2419 kOsWin, 2419 kOsWin,
2420 SINGLE_VALUE_TYPE(switches::kTrySupportedChannelLayouts) 2420 SINGLE_VALUE_TYPE(switches::kTrySupportedChannelLayouts)
2421 }, 2421 },
2422 #endif 2422 #endif
2423 {
2424 "emphasize-titles-in-omnibox-dropdown",
2425 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_NAME,
2426 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_DESCRIPTION,
2427 kOsAll,
2428 SINGLE_VALUE_TYPE(switches::kEmphasizeTitlesInOmniboxDropdown)
2429 },
2423 // NOTE: Adding new command-line switches requires adding corresponding 2430 // NOTE: Adding new command-line switches requires adding corresponding
2424 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2431 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2425 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2432 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2426 }; 2433 };
2427 2434
2428 const Experiment* experiments = kExperiments; 2435 const Experiment* experiments = kExperiments;
2429 size_t num_experiments = arraysize(kExperiments); 2436 size_t num_experiments = arraysize(kExperiments);
2430 2437
2431 // Stores and encapsulates the little state that about:flags has. 2438 // Stores and encapsulates the little state that about:flags has.
2432 class FlagsState { 2439 class FlagsState {
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
3001 } 3008 }
3002 3009
3003 const Experiment* GetExperiments(size_t* count) { 3010 const Experiment* GetExperiments(size_t* count) {
3004 *count = num_experiments; 3011 *count = num_experiments;
3005 return experiments; 3012 return experiments;
3006 } 3013 }
3007 3014
3008 } // namespace testing 3015 } // namespace testing
3009 3016
3010 } // namespace about_flags 3017 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/autocomplete/autocomplete_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698