| 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 1965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1976 kOsDesktop, | 1976 kOsDesktop, |
| 1977 SINGLE_VALUE_TYPE(switches::kEmbedFlashFullscreen) | 1977 SINGLE_VALUE_TYPE(switches::kEmbedFlashFullscreen) |
| 1978 }, | 1978 }, |
| 1979 #if defined(USE_ASH) && defined(OS_CHROMEOS) | 1979 #if defined(USE_ASH) && defined(OS_CHROMEOS) |
| 1980 { | 1980 { |
| 1981 "enable-system-sounds", | 1981 "enable-system-sounds", |
| 1982 IDS_FLAGS_ENABLE_SYSTEM_SOUNDS_NAME, | 1982 IDS_FLAGS_ENABLE_SYSTEM_SOUNDS_NAME, |
| 1983 IDS_FLAGS_ENABLE_SYSTEM_SOUNDS_DESCRIPTION, | 1983 IDS_FLAGS_ENABLE_SYSTEM_SOUNDS_DESCRIPTION, |
| 1984 kOsCrOS, | 1984 kOsCrOS, |
| 1985 SINGLE_VALUE_TYPE(ash::switches::kAshEnableSystemSounds) | 1985 SINGLE_VALUE_TYPE(ash::switches::kAshEnableSystemSounds) |
| 1986 } | 1986 }, |
| 1987 #endif |
| 1988 #if defined(USE_AURA) |
| 1989 { |
| 1990 "use-system-title-bar", |
| 1991 IDS_FLAGS_USE_SYSTEM_TITLE_BAR, |
| 1992 IDS_FLAGS_USE_SYSTEM_TITLE_BAR_DESCRIPTION, |
| 1993 kOsLinux, |
| 1994 SINGLE_VALUE_TYPE(switches::kUseSystemTitleBar) |
| 1995 }, |
| 1987 #endif | 1996 #endif |
| 1988 }; | 1997 }; |
| 1989 | 1998 |
| 1990 const Experiment* experiments = kExperiments; | 1999 const Experiment* experiments = kExperiments; |
| 1991 size_t num_experiments = arraysize(kExperiments); | 2000 size_t num_experiments = arraysize(kExperiments); |
| 1992 | 2001 |
| 1993 // Stores and encapsulates the little state that about:flags has. | 2002 // Stores and encapsulates the little state that about:flags has. |
| 1994 class FlagsState { | 2003 class FlagsState { |
| 1995 public: | 2004 public: |
| 1996 FlagsState() : needs_restart_(false) {} | 2005 FlagsState() : needs_restart_(false) {} |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2489 } | 2498 } |
| 2490 | 2499 |
| 2491 const Experiment* GetExperiments(size_t* count) { | 2500 const Experiment* GetExperiments(size_t* count) { |
| 2492 *count = num_experiments; | 2501 *count = num_experiments; |
| 2493 return experiments; | 2502 return experiments; |
| 2494 } | 2503 } |
| 2495 | 2504 |
| 2496 } // namespace testing | 2505 } // namespace testing |
| 2497 | 2506 |
| 2498 } // namespace about_flags | 2507 } // namespace about_flags |
| OLD | NEW |