| 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 <iterator> | 7 #include <iterator> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1990 kOsMac, | 1990 kOsMac, |
| 1991 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppInfoDialogMac, | 1991 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppInfoDialogMac, |
| 1992 switches::kDisableAppInfoDialogMac)}, | 1992 switches::kDisableAppInfoDialogMac)}, |
| 1993 {"mac-views-native-app-windows", | 1993 {"mac-views-native-app-windows", |
| 1994 IDS_FLAGS_MAC_VIEWS_NATIVE_APP_WINDOWS_NAME, | 1994 IDS_FLAGS_MAC_VIEWS_NATIVE_APP_WINDOWS_NAME, |
| 1995 IDS_FLAGS_MAC_VIEWS_NATIVE_APP_WINDOWS_DESCRIPTION, | 1995 IDS_FLAGS_MAC_VIEWS_NATIVE_APP_WINDOWS_DESCRIPTION, |
| 1996 kOsMac, | 1996 kOsMac, |
| 1997 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableMacViewsNativeAppWindows, | 1997 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableMacViewsNativeAppWindows, |
| 1998 switches::kDisableMacViewsNativeAppWindows)}, | 1998 switches::kDisableMacViewsNativeAppWindows)}, |
| 1999 #endif | 1999 #endif |
| 2000 #if defined(ENABLE_SPELLCHECK) && \ |
| 2001 (defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS)) |
| 2002 { |
| 2003 "enable-multilingual-spellchecker", |
| 2004 IDS_FLAGS_ENABLE_MULTILINGUAL_SPELLCHECKER_NAME, |
| 2005 IDS_FLAGS_ENABLE_MULTILINGUAL_SPELLCHECKER_DESCRIPTION, |
| 2006 kOsWin | kOsLinux | kOsCrOS, |
| 2007 SINGLE_VALUE_TYPE(switches::kEnableMultilingualSpellChecker) |
| 2008 }, |
| 2009 #endif |
| 2010 |
| 2000 // NOTE: Adding new command-line switches requires adding corresponding | 2011 // NOTE: Adding new command-line switches requires adding corresponding |
| 2001 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2012 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2002 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2013 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2003 }; | 2014 }; |
| 2004 | 2015 |
| 2005 const Experiment* experiments = kExperiments; | 2016 const Experiment* experiments = kExperiments; |
| 2006 size_t num_experiments = arraysize(kExperiments); | 2017 size_t num_experiments = arraysize(kExperiments); |
| 2007 | 2018 |
| 2008 // Stores and encapsulates the little state that about:flags has. | 2019 // Stores and encapsulates the little state that about:flags has. |
| 2009 class FlagsState { | 2020 class FlagsState { |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2587 } | 2598 } |
| 2588 | 2599 |
| 2589 const Experiment* GetExperiments(size_t* count) { | 2600 const Experiment* GetExperiments(size_t* count) { |
| 2590 *count = num_experiments; | 2601 *count = num_experiments; |
| 2591 return experiments; | 2602 return experiments; |
| 2592 } | 2603 } |
| 2593 | 2604 |
| 2594 } // namespace testing | 2605 } // namespace testing |
| 2595 | 2606 |
| 2596 } // namespace about_flags | 2607 } // namespace about_flags |
| OLD | NEW |