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

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

Issue 2030223002: Introduce --vr-shell flag on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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') | chrome/common/chrome_switches.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 1892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1903 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_DESCRIPTION, kOsAll, 1903 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_DESCRIPTION, kOsAll,
1904 MULTI_VALUE_TYPE(kPassiveListenersChoices)}, 1904 MULTI_VALUE_TYPE(kPassiveListenersChoices)},
1905 {"enable-loading-ipc-optimization-for-small-resources", 1905 {"enable-loading-ipc-optimization-for-small-resources",
1906 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME, 1906 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME,
1907 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll, 1907 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll,
1908 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)}, 1908 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)},
1909 {"enable-font-cache-scaling", 1909 {"enable-font-cache-scaling",
1910 IDS_FLAGS_FONT_CACHE_SCALING_NAME, 1910 IDS_FLAGS_FONT_CACHE_SCALING_NAME,
1911 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll, 1911 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll,
1912 FEATURE_VALUE_TYPE(features::kFontCacheScaling)}, 1912 FEATURE_VALUE_TYPE(features::kFontCacheScaling)},
1913 #if defined(OS_ANDROID)
1914 {"enable-vr-shell",
1915 IDS_FLAGS_ENABLE_VR_SHELL_NAME,
1916 IDS_FLAGS_ENABLE_VR_SHELL_DESCRIPTION, kOsAndroid,
1917 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableVrShell,
1918 switches::kDisableVrShell)},
1919 #endif
1913 1920
1914 {"enable-weak-memorycache", 1921 {"enable-weak-memorycache",
1915 IDS_FLAGS_ENABLE_WEAK_MEMORYCACHE_NAME, 1922 IDS_FLAGS_ENABLE_WEAK_MEMORYCACHE_NAME,
1916 IDS_FLAGS_ENABLE_WEAK_MEMORYCACHE_DESCRIPTION, kOsAll, 1923 IDS_FLAGS_ENABLE_WEAK_MEMORYCACHE_DESCRIPTION, kOsAll,
1917 FEATURE_VALUE_TYPE(features::kWeakMemoryCache)}, 1924 FEATURE_VALUE_TYPE(features::kWeakMemoryCache)},
1918 // NOTE: Adding new command-line switches requires adding corresponding 1925 // NOTE: Adding new command-line switches requires adding corresponding
1919 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1926 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
1920 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1927 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1921 }; 1928 };
1922 1929
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
2107 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2114 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2108 2115
2109 const FeatureEntry* GetFeatureEntries(size_t* count) { 2116 const FeatureEntry* GetFeatureEntries(size_t* count) {
2110 *count = arraysize(kFeatureEntries); 2117 *count = arraysize(kFeatureEntries);
2111 return kFeatureEntries; 2118 return kFeatureEntries;
2112 } 2119 }
2113 2120
2114 } // namespace testing 2121 } // namespace testing
2115 2122
2116 } // namespace about_flags 2123 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698