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 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 kOsWin | kOsLinux, | 999 kOsWin | kOsLinux, |
1000 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillUi) | 1000 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillUi) |
1001 }, | 1001 }, |
1002 { | 1002 { |
1003 "enable-new-autofill-heuristics", | 1003 "enable-new-autofill-heuristics", |
1004 IDS_FLAGS_ENABLE_NEW_AUTOFILL_HEURISTICS_NAME, | 1004 IDS_FLAGS_ENABLE_NEW_AUTOFILL_HEURISTICS_NAME, |
1005 IDS_FLAGS_ENABLE_NEW_AUTOFILL_HEURISTICS_DESCRIPTION, | 1005 IDS_FLAGS_ENABLE_NEW_AUTOFILL_HEURISTICS_DESCRIPTION, |
1006 kOsAll, | 1006 kOsAll, |
1007 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillHeuristics) | 1007 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillHeuristics) |
1008 }, | 1008 }, |
| 1009 { |
| 1010 "enable-web-intents-invocation", |
| 1011 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_NAME, |
| 1012 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_DESCRIPTION, |
| 1013 kOsAll, |
| 1014 SINGLE_VALUE_TYPE(switches::kWebIntentsInvocationEnabled) |
| 1015 }, |
1009 }; | 1016 }; |
1010 | 1017 |
1011 const Experiment* experiments = kExperiments; | 1018 const Experiment* experiments = kExperiments; |
1012 size_t num_experiments = arraysize(kExperiments); | 1019 size_t num_experiments = arraysize(kExperiments); |
1013 | 1020 |
1014 // Stores and encapsulates the little state that about:flags has. | 1021 // Stores and encapsulates the little state that about:flags has. |
1015 class FlagsState { | 1022 class FlagsState { |
1016 public: | 1023 public: |
1017 FlagsState() : needs_restart_(false) {} | 1024 FlagsState() : needs_restart_(false) {} |
1018 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1025 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 } | 1442 } |
1436 | 1443 |
1437 const Experiment* GetExperiments(size_t* count) { | 1444 const Experiment* GetExperiments(size_t* count) { |
1438 *count = num_experiments; | 1445 *count = num_experiments; |
1439 return experiments; | 1446 return experiments; |
1440 } | 1447 } |
1441 | 1448 |
1442 } // namespace testing | 1449 } // namespace testing |
1443 | 1450 |
1444 } // namespace about_flags | 1451 } // namespace about_flags |
OLD | NEW |