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

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

Issue 1962263002: Introduce FontCache content scaling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win layout test fix Created 4 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 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after
1882 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, kOsAll, 1882 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, kOsAll,
1883 FEATURE_VALUE_TYPE(features::kPointerEvents)}, 1883 FEATURE_VALUE_TYPE(features::kPointerEvents)},
1884 {"passive-listener-default", // FLAGS:RECORD_UMA 1884 {"passive-listener-default", // FLAGS:RECORD_UMA
1885 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_NAME, 1885 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_NAME,
1886 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_DESCRIPTION, kOsAll, 1886 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_DESCRIPTION, kOsAll,
1887 MULTI_VALUE_TYPE(kPassiveListenersChoices)}, 1887 MULTI_VALUE_TYPE(kPassiveListenersChoices)},
1888 {"enable-loading-ipc-optimization-for-small-resources", 1888 {"enable-loading-ipc-optimization-for-small-resources",
1889 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME, 1889 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME,
1890 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll, 1890 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll,
1891 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)}, 1891 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)},
1892 {"enable-font-cache-scaling",
1893 IDS_FLAGS_FONT_CACHE_SCALING_NAME,
1894 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll,
1895 FEATURE_VALUE_TYPE(features::kFontCacheScaling)},
1892 1896
1893 // NOTE: Adding new command-line switches requires adding corresponding 1897 // NOTE: Adding new command-line switches requires adding corresponding
1894 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1898 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
1895 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1899 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1896 }; 1900 };
1897 1901
1898 class FlagsStateSingleton { 1902 class FlagsStateSingleton {
1899 public: 1903 public:
1900 FlagsStateSingleton() 1904 FlagsStateSingleton()
1901 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 1905 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2082 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2086 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2083 2087
2084 const FeatureEntry* GetFeatureEntries(size_t* count) { 2088 const FeatureEntry* GetFeatureEntries(size_t* count) {
2085 *count = arraysize(kFeatureEntries); 2089 *count = arraysize(kFeatureEntries);
2086 return kFeatureEntries; 2090 return kFeatureEntries;
2087 } 2091 }
2088 2092
2089 } // namespace testing 2093 } // namespace testing
2090 2094
2091 } // namespace about_flags 2095 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698