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

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

Issue 2565043002: Add flags entry to enable Chrome OS component updates fature. (Closed)
Patch Set: Created 4 years 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 2108 matching lines...) Expand 10 before | Expand all | Expand 10 after
2119 {"video-fullscreen-orientation-lock", 2119 {"video-fullscreen-orientation-lock",
2120 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_NAME, 2120 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_NAME,
2121 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_DESCRIPTION, kOsAndroid, 2121 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_DESCRIPTION, kOsAndroid,
2122 FEATURE_VALUE_TYPE(media::kVideoFullscreenOrientationLock)}, 2122 FEATURE_VALUE_TYPE(media::kVideoFullscreenOrientationLock)},
2123 #endif 2123 #endif
2124 {"enable-nostate-prefetch", IDS_FLAGS_NOSTATE_PREFETCH, 2124 {"enable-nostate-prefetch", IDS_FLAGS_NOSTATE_PREFETCH,
2125 IDS_FLAGS_NOSTATE_PREFETCH_DESCRIPTION, kOsAll, 2125 IDS_FLAGS_NOSTATE_PREFETCH_DESCRIPTION, kOsAll,
2126 FEATURE_WITH_VARIATIONS_VALUE_TYPE(prerender::kNoStatePrefetchFeature, 2126 FEATURE_WITH_VARIATIONS_VALUE_TYPE(prerender::kNoStatePrefetchFeature,
2127 kNoStatePrefetchFeatureVariations, 2127 kNoStatePrefetchFeatureVariations,
2128 "NoStatePrefetchValidation")}, 2128 "NoStatePrefetchValidation")},
2129 #if defined(OS_CHROMEOS)
2130 {"cros-comp-updates", IDS_FLAGS_CROS_COMP_UPDATES_NAME,
2131 IDS_FLAGS_CROS_COMP_UPDATES_DESCRIPTION, kOsCrOS,
2132 FEATURE_VALUE_TYPE(features::kCrosCompUpdates)},
2133 #endif
2129 2134
2130 // NOTE: Adding new command-line switches requires adding corresponding 2135 // NOTE: Adding new command-line switches requires adding corresponding
2131 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2136 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2132 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2137 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2133 }; 2138 };
2134 2139
2135 class FlagsStateSingleton { 2140 class FlagsStateSingleton {
2136 public: 2141 public:
2137 FlagsStateSingleton() 2142 FlagsStateSingleton()
2138 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2143 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2328 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2333 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2329 2334
2330 const FeatureEntry* GetFeatureEntries(size_t* count) { 2335 const FeatureEntry* GetFeatureEntries(size_t* count) {
2331 *count = arraysize(kFeatureEntries); 2336 *count = arraysize(kFeatureEntries);
2332 return kFeatureEntries; 2337 return kFeatureEntries;
2333 } 2338 }
2334 2339
2335 } // namespace testing 2340 } // namespace testing
2336 2341
2337 } // namespace about_flags 2342 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/component_updater/pepper_flash_component_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698