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

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

Issue 1915113005: [WeakMemoryCache] Field-Trial: Make Reference from MemoryCache to Resource weak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@MemoryCache_1b0
Patch Set: Rebase. 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
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 1895 matching lines...) Expand 10 before | Expand all | Expand 10 after
1906 MULTI_VALUE_TYPE(kPassiveListenersChoices)}, 1906 MULTI_VALUE_TYPE(kPassiveListenersChoices)},
1907 {"enable-loading-ipc-optimization-for-small-resources", 1907 {"enable-loading-ipc-optimization-for-small-resources",
1908 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME, 1908 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME,
1909 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll, 1909 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll,
1910 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)}, 1910 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)},
1911 {"enable-font-cache-scaling", 1911 {"enable-font-cache-scaling",
1912 IDS_FLAGS_FONT_CACHE_SCALING_NAME, 1912 IDS_FLAGS_FONT_CACHE_SCALING_NAME,
1913 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll, 1913 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll,
1914 FEATURE_VALUE_TYPE(features::kFontCacheScaling)}, 1914 FEATURE_VALUE_TYPE(features::kFontCacheScaling)},
1915 1915
1916 {"enable-weak-memorycache",
1917 IDS_FLAGS_ENABLE_WEAK_MEMORYCACHE_NAME,
1918 IDS_FLAGS_ENABLE_WEAK_MEMORYCACHE_DESCRIPTION, kOsAll,
1919 FEATURE_VALUE_TYPE(features::kWeakMemoryCache)},
1916 // NOTE: Adding new command-line switches requires adding corresponding 1920 // NOTE: Adding new command-line switches requires adding corresponding
1917 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1921 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
1918 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1922 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1919 }; 1923 };
1920 1924
1921 class FlagsStateSingleton { 1925 class FlagsStateSingleton {
1922 public: 1926 public:
1923 FlagsStateSingleton() 1927 FlagsStateSingleton()
1924 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 1928 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
1925 ~FlagsStateSingleton() {} 1929 ~FlagsStateSingleton() {}
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2105 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2109 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2106 2110
2107 const FeatureEntry* GetFeatureEntries(size_t* count) { 2111 const FeatureEntry* GetFeatureEntries(size_t* count) {
2108 *count = arraysize(kFeatureEntries); 2112 *count = arraysize(kFeatureEntries);
2109 return kFeatureEntries; 2113 return kFeatureEntries;
2110 } 2114 }
2111 2115
2112 } // namespace testing 2116 } // namespace testing
2113 2117
2114 } // namespace about_flags 2118 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698