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

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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/child/runtime_features.cc » ('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 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 MULTI_VALUE_TYPE(kPassiveListenersChoices)}, 1908 MULTI_VALUE_TYPE(kPassiveListenersChoices)},
1909 {"enable-loading-ipc-optimization-for-small-resources", 1909 {"enable-loading-ipc-optimization-for-small-resources",
1910 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME, 1910 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME,
1911 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll, 1911 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll,
1912 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)}, 1912 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)},
1913 {"enable-font-cache-scaling", 1913 {"enable-font-cache-scaling",
1914 IDS_FLAGS_FONT_CACHE_SCALING_NAME, 1914 IDS_FLAGS_FONT_CACHE_SCALING_NAME,
1915 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll, 1915 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll,
1916 FEATURE_VALUE_TYPE(features::kFontCacheScaling)}, 1916 FEATURE_VALUE_TYPE(features::kFontCacheScaling)},
1917 1917
1918 {"enable-weak-memorycache",
1919 IDS_FLAGS_ENABLE_WEAK_MEMORYCACHE_NAME,
1920 IDS_FLAGS_ENABLE_WEAK_MEMORYCACHE_DESCRIPTION, kOsAll,
1921 FEATURE_VALUE_TYPE(features::kWeakMemoryCache)},
1918 // NOTE: Adding new command-line switches requires adding corresponding 1922 // NOTE: Adding new command-line switches requires adding corresponding
1919 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1923 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
1920 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1924 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1921 }; 1925 };
1922 1926
1923 class FlagsStateSingleton { 1927 class FlagsStateSingleton {
1924 public: 1928 public:
1925 FlagsStateSingleton() 1929 FlagsStateSingleton()
1926 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 1930 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
1927 ~FlagsStateSingleton() {} 1931 ~FlagsStateSingleton() {}
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2107 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2111 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2108 2112
2109 const FeatureEntry* GetFeatureEntries(size_t* count) { 2113 const FeatureEntry* GetFeatureEntries(size_t* count) {
2110 *count = arraysize(kFeatureEntries); 2114 *count = arraysize(kFeatureEntries);
2111 return kFeatureEntries; 2115 return kFeatureEntries;
2112 } 2116 }
2113 2117
2114 } // namespace testing 2118 } // namespace testing
2115 2119
2116 } // namespace about_flags 2120 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698