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

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

Issue 2867053005: Flag for D3DVsync feature on chrome://flags (Closed)
Patch Set: Created 3 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 | « no previous file | chrome/browser/flag_descriptions.h » ('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 2863 matching lines...) Expand 10 before | Expand all | Expand 10 after
2874 2874
2875 {"enable-location-hard-reload", flag_descriptions::kLocationHardReloadName, 2875 {"enable-location-hard-reload", flag_descriptions::kLocationHardReloadName,
2876 flag_descriptions::kLocationHardReloadDescription, kOsAll, 2876 flag_descriptions::kLocationHardReloadDescription, kOsAll,
2877 FEATURE_VALUE_TYPE(features::kLocationHardReload)}, 2877 FEATURE_VALUE_TYPE(features::kLocationHardReload)},
2878 2878
2879 {"capture-thumbnail-on-load-finished", 2879 {"capture-thumbnail-on-load-finished",
2880 flag_descriptions::kCaptureThumbnailOnLoadFinishedName, 2880 flag_descriptions::kCaptureThumbnailOnLoadFinishedName,
2881 flag_descriptions::kCaptureThumbnailOnLoadFinishedDescription, kOsDesktop, 2881 flag_descriptions::kCaptureThumbnailOnLoadFinishedDescription, kOsDesktop,
2882 FEATURE_VALUE_TYPE(features::kCaptureThumbnailOnLoadFinished)}, 2882 FEATURE_VALUE_TYPE(features::kCaptureThumbnailOnLoadFinished)},
2883 2883
2884 #if defined(OS_WIN)
2885 {"enable-d3d-vsync", flag_descriptions::kEnableD3DVsync,
2886 flag_descriptions::kEnableD3DVsyncDescription, kOsWin,
2887 FEATURE_VALUE_TYPE(features::kD3DVsync)},
2888 #endif // OS_WIN
Lei Zhang 2017/05/09 23:54:25 defined(OS_WIN), or just omit the comment since th
2889
2884 // NOTE: Adding new command-line switches requires adding corresponding 2890 // NOTE: Adding new command-line switches requires adding corresponding
2885 // entries to enum "LoginCustomFlags" in histograms/enums.xml. See note in 2891 // entries to enum "LoginCustomFlags" in histograms/enums.xml. See note in
2886 // enums.xml and don't forget to run AboutFlagsHistogramTest unit test. 2892 // enums.xml and don't forget to run AboutFlagsHistogramTest unit test.
2887 }; 2893 };
2888 2894
2889 class FlagsStateSingleton { 2895 class FlagsStateSingleton {
2890 public: 2896 public:
2891 FlagsStateSingleton() 2897 FlagsStateSingleton()
2892 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2898 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2893 ~FlagsStateSingleton() {} 2899 ~FlagsStateSingleton() {}
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
3099 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 3105 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
3100 3106
3101 const FeatureEntry* GetFeatureEntries(size_t* count) { 3107 const FeatureEntry* GetFeatureEntries(size_t* count) {
3102 *count = arraysize(kFeatureEntries); 3108 *count = arraysize(kFeatureEntries);
3103 return kFeatureEntries; 3109 return kFeatureEntries;
3104 } 3110 }
3105 3111
3106 } // namespace testing 3112 } // namespace testing
3107 3113
3108 } // namespace about_flags 3114 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698