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

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

Issue 1129383006: Add chrome://flags entry for --try-supported-channel-layouts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix histogram. 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | tools/metrics/histograms/histograms.xml » ('j') | 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 2450 matching lines...) Expand 10 before | Expand all | Expand 10 after
2461 // Temporary flag to ease the transition to standard-compliant scrollTop 2461 // Temporary flag to ease the transition to standard-compliant scrollTop
2462 // behavior. Will be removed shortly after http://crbug.com/157855 ships. 2462 // behavior. Will be removed shortly after http://crbug.com/157855 ships.
2463 { 2463 {
2464 "scroll-top-left-interop", 2464 "scroll-top-left-interop",
2465 IDS_FLAGS_SCROLL_TOP_LEFT_INTEROP_NAME, 2465 IDS_FLAGS_SCROLL_TOP_LEFT_INTEROP_NAME,
2466 IDS_FLAGS_SCROLL_TOP_LEFT_INTEROP_DESCRIPTION, 2466 IDS_FLAGS_SCROLL_TOP_LEFT_INTEROP_DESCRIPTION,
2467 kOsAll, 2467 kOsAll,
2468 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE( 2468 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
2469 switches::kEnableBlinkFeatures, "ScrollTopLeftInterop", 2469 switches::kEnableBlinkFeatures, "ScrollTopLeftInterop",
2470 switches::kDisableBlinkFeatures, "ScrollTopLeftInterop") 2470 switches::kDisableBlinkFeatures, "ScrollTopLeftInterop")
2471 } 2471 },
2472 #if defined(OS_WIN)
2473 {
2474 "try-supported-channel-layouts",
2475 IDS_FLAGS_TRY_SUPPORTED_CHANNEL_LAYOUTS_NAME,
2476 IDS_FLAGS_TRY_SUPPORTED_CHANNEL_LAYOUTS_DESCRIPTION,
2477 kOsWin,
2478 SINGLE_VALUE_TYPE(switches::kTrySupportedChannelLayouts)
2479 },
2480 #endif
2472 // NOTE: Adding new command-line switches requires adding corresponding 2481 // NOTE: Adding new command-line switches requires adding corresponding
2473 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2482 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2474 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2483 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2475 }; 2484 };
2476 2485
2477 const Experiment* experiments = kExperiments; 2486 const Experiment* experiments = kExperiments;
2478 size_t num_experiments = arraysize(kExperiments); 2487 size_t num_experiments = arraysize(kExperiments);
2479 2488
2480 // Stores and encapsulates the little state that about:flags has. 2489 // Stores and encapsulates the little state that about:flags has.
2481 class FlagsState { 2490 class FlagsState {
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
3050 } 3059 }
3051 3060
3052 const Experiment* GetExperiments(size_t* count) { 3061 const Experiment* GetExperiments(size_t* count) {
3053 *count = num_experiments; 3062 *count = num_experiments;
3054 return experiments; 3063 return experiments;
3055 } 3064 }
3056 3065
3057 } // namespace testing 3066 } // namespace testing
3058 3067
3059 } // namespace about_flags 3068 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698