OLD | NEW |
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 <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 }, | 636 }, |
637 #if defined(OS_CHROMEOS) | 637 #if defined(OS_CHROMEOS) |
638 { | 638 { |
639 "no-discard-tabs", | 639 "no-discard-tabs", |
640 IDS_FLAGS_NO_DISCARD_TABS_NAME, | 640 IDS_FLAGS_NO_DISCARD_TABS_NAME, |
641 IDS_FLAGS_NO_DISCARD_TABS_DESCRIPTION, | 641 IDS_FLAGS_NO_DISCARD_TABS_DESCRIPTION, |
642 kOsCrOS, | 642 kOsCrOS, |
643 SINGLE_VALUE_TYPE(switches::kNoDiscardTabs) | 643 SINGLE_VALUE_TYPE(switches::kNoDiscardTabs) |
644 }, | 644 }, |
645 #endif | 645 #endif |
| 646 { |
| 647 "enable-sync-signing", |
| 648 IDS_ENABLE_SYNC_SIGNIN_NAME, |
| 649 IDS_ENABLE_SYNC_SIGNIN_DESCRIPTION, |
| 650 kOsAll, |
| 651 SINGLE_VALUE_TYPE(switches::kEnableSyncSignin) |
| 652 }, |
646 }; | 653 }; |
647 | 654 |
648 const Experiment* experiments = kExperiments; | 655 const Experiment* experiments = kExperiments; |
649 size_t num_experiments = arraysize(kExperiments); | 656 size_t num_experiments = arraysize(kExperiments); |
650 | 657 |
651 // Stores and encapsulates the little state that about:flags has. | 658 // Stores and encapsulates the little state that about:flags has. |
652 class FlagsState { | 659 class FlagsState { |
653 public: | 660 public: |
654 FlagsState() : needs_restart_(false) {} | 661 FlagsState() : needs_restart_(false) {} |
655 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 662 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 } | 1078 } |
1072 | 1079 |
1073 const Experiment* GetExperiments(size_t* count) { | 1080 const Experiment* GetExperiments(size_t* count) { |
1074 *count = num_experiments; | 1081 *count = num_experiments; |
1075 return experiments; | 1082 return experiments; |
1076 } | 1083 } |
1077 | 1084 |
1078 } // namespace testing | 1085 } // namespace testing |
1079 | 1086 |
1080 } // namespace about_flags | 1087 } // namespace about_flags |
OLD | NEW |