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

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

Issue 829803003: Adding Chrome-side WebVR interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated to use Mojo as requested by eng review Created 5 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
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 2434 matching lines...) Expand 10 before | Expand all | Expand 10 after
2445 SINGLE_VALUE_TYPE(switches::kTrySupportedChannelLayouts) 2445 SINGLE_VALUE_TYPE(switches::kTrySupportedChannelLayouts)
2446 }, 2446 },
2447 #endif 2447 #endif
2448 { 2448 {
2449 "emphasize-titles-in-omnibox-dropdown", 2449 "emphasize-titles-in-omnibox-dropdown",
2450 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_NAME, 2450 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_NAME,
2451 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_DESCRIPTION, 2451 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_DESCRIPTION,
2452 kOsAll, 2452 kOsAll,
2453 SINGLE_VALUE_TYPE(switches::kEmphasizeTitlesInOmniboxDropdown) 2453 SINGLE_VALUE_TYPE(switches::kEmphasizeTitlesInOmniboxDropdown)
2454 }, 2454 },
2455 #if defined(ENABLE_WEBVR)
2456 {
2457 "enable-webvr",
2458 IDS_FLAGS_ENABLE_WEBVR_NAME,
2459 IDS_FLAGS_ENABLE_WEBVR_DESCRIPTION,
2460 kOsAll,
2461 SINGLE_VALUE_TYPE(switches::kEnableWebVR)
2462 },
2463 #endif
2455 // NOTE: Adding new command-line switches requires adding corresponding 2464 // NOTE: Adding new command-line switches requires adding corresponding
2456 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2465 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2457 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2466 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2458 }; 2467 };
2459 2468
2460 const Experiment* experiments = kExperiments; 2469 const Experiment* experiments = kExperiments;
2461 size_t num_experiments = arraysize(kExperiments); 2470 size_t num_experiments = arraysize(kExperiments);
2462 2471
2463 // Stores and encapsulates the little state that about:flags has. 2472 // Stores and encapsulates the little state that about:flags has.
2464 class FlagsState { 2473 class FlagsState {
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
3033 } 3042 }
3034 3043
3035 const Experiment* GetExperiments(size_t* count) { 3044 const Experiment* GetExperiments(size_t* count) {
3036 *count = num_experiments; 3045 *count = num_experiments;
3037 return experiments; 3046 return experiments;
3038 } 3047 }
3039 3048
3040 } // namespace testing 3049 } // namespace testing
3041 3050
3042 } // namespace about_flags 3051 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698