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

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

Issue 2544133002: Add flags entries to test chrome OS component updates in release mode. (Closed)
Patch Set: Add flags entries to test chrome OS component updates in release mode. 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 2091 matching lines...) Expand 10 before | Expand all | Expand 10 after
2102 {"media-remoting-encrypted", IDS_FLAGS_MEDIA_REMOTING_ENCRYPTED_NAME, 2102 {"media-remoting-encrypted", IDS_FLAGS_MEDIA_REMOTING_ENCRYPTED_NAME,
2103 IDS_FLAGS_MEDIA_REMOTING_ENCRYPTED_DESCRIPTION, kOsDesktop, 2103 IDS_FLAGS_MEDIA_REMOTING_ENCRYPTED_DESCRIPTION, kOsDesktop,
2104 FEATURE_VALUE_TYPE(features::kMediaRemotingEncrypted)}, 2104 FEATURE_VALUE_TYPE(features::kMediaRemotingEncrypted)},
2105 #endif 2105 #endif
2106 #if defined(OS_ANDROID) 2106 #if defined(OS_ANDROID)
2107 {"video-fullscreen-orientation-lock", 2107 {"video-fullscreen-orientation-lock",
2108 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_NAME, 2108 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_NAME,
2109 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_DESCRIPTION, kOsAndroid, 2109 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_DESCRIPTION, kOsAndroid,
2110 FEATURE_VALUE_TYPE(media::kVideoFullscreenOrientationLock)}, 2110 FEATURE_VALUE_TYPE(media::kVideoFullscreenOrientationLock)},
2111 #endif 2111 #endif
2112 #if defined(OS_CHROMEOS)
2113 {"cros-comp-updates", IDS_FLAGS_CROS_COMP_UPDATES_NAME,
2114 IDS_FLAGS_CROS_COMP_UPDATES_DESCRIPTION, kOsCrOS,
2115 FEATURE_VALUE_TYPE(features::kCrosCompUpdates)},
2116 {"component-flash-only", IDS_FLAGS_COMPONENT_FLASH_ONLY_NAME,
2117 IDS_FLAGS_COMPONENT_FLASH_ONLY_DESCRIPTION, kOsCrOS,
2118 FEATURE_VALUE_TYPE(features::kComponentFlashOnly)},
2119 #endif
2112 2120
2113 // NOTE: Adding new command-line switches requires adding corresponding 2121 // NOTE: Adding new command-line switches requires adding corresponding
2114 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2122 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2115 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2123 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2116 }; 2124 };
2117 2125
2118 class FlagsStateSingleton { 2126 class FlagsStateSingleton {
2119 public: 2127 public:
2120 FlagsStateSingleton() 2128 FlagsStateSingleton()
2121 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2129 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2311 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2319 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2312 2320
2313 const FeatureEntry* GetFeatureEntries(size_t* count) { 2321 const FeatureEntry* GetFeatureEntries(size_t* count) {
2314 *count = arraysize(kFeatureEntries); 2322 *count = arraysize(kFeatureEntries);
2315 return kFeatureEntries; 2323 return kFeatureEntries;
2316 } 2324 }
2317 2325
2318 } // namespace testing 2326 } // namespace testing
2319 2327
2320 } // namespace about_flags 2328 } // 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