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 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1978 kOsMac, | 1978 kOsMac, |
1979 MULTI_VALUE_TYPE(kNotificationCenterTrayBehaviorChoices) | 1979 MULTI_VALUE_TYPE(kNotificationCenterTrayBehaviorChoices) |
1980 }, | 1980 }, |
1981 { | 1981 { |
1982 "out-of-process-pdf", | 1982 "out-of-process-pdf", |
1983 IDS_FLAGS_OUT_OF_PROCESS_PDF_NAME, | 1983 IDS_FLAGS_OUT_OF_PROCESS_PDF_NAME, |
1984 IDS_FLAGS_OUT_OF_PROCESS_PDF_DESCRIPTION, | 1984 IDS_FLAGS_OUT_OF_PROCESS_PDF_DESCRIPTION, |
1985 kOsDesktop, | 1985 kOsDesktop, |
1986 SINGLE_VALUE_TYPE(switches::kOutOfProcessPdf) | 1986 SINGLE_VALUE_TYPE(switches::kOutOfProcessPdf) |
1987 }, | 1987 }, |
1988 { | |
1989 "enable-offline-auto-reload", | |
Randy Smith (Not in Mondays)
2014/02/26 00:07:38
This is the second definition of this flag; I crea
Elly Fong-Jones
2014/03/03 19:31:07
Done.
| |
1990 IDS_FLAGS_ENABLE_OFFLINE_AUTO_RELOAD_NAME, | |
1991 IDS_FLAGS_ENABLE_OFFLINE_AUTO_RELOAD_DESCRIPTION, | |
1992 kOsAll, | |
1993 SINGLE_VALUE_TYPE(switches::kEnableOfflineAutoReload) | |
1994 }, | |
1988 }; | 1995 }; |
1989 | 1996 |
1990 const Experiment* experiments = kExperiments; | 1997 const Experiment* experiments = kExperiments; |
1991 size_t num_experiments = arraysize(kExperiments); | 1998 size_t num_experiments = arraysize(kExperiments); |
1992 | 1999 |
1993 // Stores and encapsulates the little state that about:flags has. | 2000 // Stores and encapsulates the little state that about:flags has. |
1994 class FlagsState { | 2001 class FlagsState { |
1995 public: | 2002 public: |
1996 FlagsState() : needs_restart_(false) {} | 2003 FlagsState() : needs_restart_(false) {} |
1997 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 2004 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2489 } | 2496 } |
2490 | 2497 |
2491 const Experiment* GetExperiments(size_t* count) { | 2498 const Experiment* GetExperiments(size_t* count) { |
2492 *count = num_experiments; | 2499 *count = num_experiments; |
2493 return experiments; | 2500 return experiments; |
2494 } | 2501 } |
2495 | 2502 |
2496 } // namespace testing | 2503 } // namespace testing |
2497 | 2504 |
2498 } // namespace about_flags | 2505 } // namespace about_flags |
OLD | NEW |