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

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

Issue 2816643002: cros: Add flag to enable pin on sign-in screen. (Closed)
Patch Set: Address comments Created 3 years, 8 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 | « no previous file | chrome/browser/flag_descriptions.h » ('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 2708 matching lines...) Expand 10 before | Expand all | Expand 10 after
2719 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName, 2719 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName,
2720 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid, 2720 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid,
2721 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, 2721 FEATURE_VALUE_TYPE(features::kCopylessPaste)},
2722 #endif 2722 #endif
2723 2723
2724 {"enable-color-correct-rendering", 2724 {"enable-color-correct-rendering",
2725 flag_descriptions::kColorCorrectRenderingName, 2725 flag_descriptions::kColorCorrectRenderingName,
2726 flag_descriptions::kColorCorrectRenderingDescription, kOsAll, 2726 flag_descriptions::kColorCorrectRenderingDescription, kOsAll,
2727 MULTI_VALUE_TYPE(kColorCorrectRenderingChoices)}, 2727 MULTI_VALUE_TYPE(kColorCorrectRenderingChoices)},
2728 2728
2729 #if defined(OS_CHROMEOS)
2730 {"quick-unlock-pin-signin", flag_descriptions::kQuickUnlockPinSignin,
2731 flag_descriptions::kQuickUnlockPinSigninDescription, kOsCrOS,
2732 FEATURE_VALUE_TYPE(features::kQuickUnlockPinSignin)},
2733 #endif // OS_CHROMEOS
2734
2729 // NOTE: Adding new command-line switches requires adding corresponding 2735 // NOTE: Adding new command-line switches requires adding corresponding
2730 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2736 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2731 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2737 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2732 }; 2738 };
2733 2739
2734 class FlagsStateSingleton { 2740 class FlagsStateSingleton {
2735 public: 2741 public:
2736 FlagsStateSingleton() 2742 FlagsStateSingleton()
2737 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2743 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2738 ~FlagsStateSingleton() {} 2744 ~FlagsStateSingleton() {}
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
2935 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2941 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2936 2942
2937 const FeatureEntry* GetFeatureEntries(size_t* count) { 2943 const FeatureEntry* GetFeatureEntries(size_t* count) {
2938 *count = arraysize(kFeatureEntries); 2944 *count = arraysize(kFeatureEntries);
2939 return kFeatureEntries; 2945 return kFeatureEntries;
2940 } 2946 }
2941 2947
2942 } // namespace testing 2948 } // namespace testing
2943 2949
2944 } // namespace about_flags 2950 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698