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

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

Issue 2648263007: Add a flag to specify whether to show ARC Files app in launcher. (Closed)
Patch Set: Created 3 years, 10 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 2198 matching lines...) Expand 10 before | Expand all | Expand 10 after
2209 #if defined(OS_ANDROID) 2209 #if defined(OS_ANDROID)
2210 {"lsd-permission-prompt", IDS_FLAGS_LSD_PERMISSION_PROMPT_NAME, 2210 {"lsd-permission-prompt", IDS_FLAGS_LSD_PERMISSION_PROMPT_NAME,
2211 IDS_FLAGS_LSD_PERMISSION_PROMPT_DESCRIPTION, kOsAndroid, 2211 IDS_FLAGS_LSD_PERMISSION_PROMPT_DESCRIPTION, kOsAndroid,
2212 FEATURE_VALUE_TYPE(features::kLsdPermissionPrompt)}, 2212 FEATURE_VALUE_TYPE(features::kLsdPermissionPrompt)},
2213 #endif 2213 #endif
2214 2214
2215 #if defined(OS_CHROMEOS) 2215 #if defined(OS_CHROMEOS)
2216 {"enable-touchscreen-calibration", IDS_FLAGS_TOUCHSCREEN_CALIBRATION_NAME, 2216 {"enable-touchscreen-calibration", IDS_FLAGS_TOUCHSCREEN_CALIBRATION_NAME,
2217 IDS_FLAGS_TOUCHSCREEN_CALIBRATION_DESCRIPTION, kOsCrOS, 2217 IDS_FLAGS_TOUCHSCREEN_CALIBRATION_DESCRIPTION, kOsCrOS,
2218 SINGLE_VALUE_TYPE(chromeos::switches::kEnableTouchCalibrationSetting)}, 2218 SINGLE_VALUE_TYPE(chromeos::switches::kEnableTouchCalibrationSetting)},
2219
2220 {"show-arc-files-app", IDS_FLAGS_SHOW_ARC_FILES_APP_NAME,
hirono 2017/01/26 01:17:50 Do we need to publish the flag for non-developers?
Steve McKay 2017/01/26 19:36:26 I think we want to let users turn this on on stabl
2221 IDS_FLAGS_SHOW_ARC_FILES_APP_DESCRIPTION, kOsCrOS,
2222 SINGLE_VALUE_TYPE(chromeos::switches::kShowArcFilesApp)},
Alexei Svitkine (slow) 2017/01/27 17:33:45 For new enable/disable style flags, the best pract
2219 #endif // defined(OS_CHROMEOS) 2223 #endif // defined(OS_CHROMEOS)
2220
2221 // NOTE: Adding new command-line switches requires adding corresponding 2224 // NOTE: Adding new command-line switches requires adding corresponding
2222 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2225 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2223 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2226 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2224 }; 2227 };
2225 2228
2226 class FlagsStateSingleton { 2229 class FlagsStateSingleton {
2227 public: 2230 public:
2228 FlagsStateSingleton() 2231 FlagsStateSingleton()
2229 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2232 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2230 ~FlagsStateSingleton() {} 2233 ~FlagsStateSingleton() {}
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2419 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2422 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2420 2423
2421 const FeatureEntry* GetFeatureEntries(size_t* count) { 2424 const FeatureEntry* GetFeatureEntries(size_t* count) {
2422 *count = arraysize(kFeatureEntries); 2425 *count = arraysize(kFeatureEntries);
2423 return kFeatureEntries; 2426 return kFeatureEntries;
2424 } 2427 }
2425 2428
2426 } // namespace testing 2429 } // namespace testing
2427 2430
2428 } // namespace about_flags 2431 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698