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 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 SINGLE_VALUE_TYPE(switches::kEnableFastTextAutosizing) | 1990 SINGLE_VALUE_TYPE(switches::kEnableFastTextAutosizing) |
1991 }, | 1991 }, |
1992 #endif | 1992 #endif |
1993 { | 1993 { |
1994 "prefetch-search-results", | 1994 "prefetch-search-results", |
1995 IDS_FLAGS_PREFETCH_SEARCH_RESULTS_NAME, | 1995 IDS_FLAGS_PREFETCH_SEARCH_RESULTS_NAME, |
1996 IDS_FLAGS_PREFETCH_SEARCH_RESULTS_DESCRIPTION, | 1996 IDS_FLAGS_PREFETCH_SEARCH_RESULTS_DESCRIPTION, |
1997 kOsDesktop, | 1997 kOsDesktop, |
1998 SINGLE_VALUE_TYPE(switches::kPrefetchSearchResults) | 1998 SINGLE_VALUE_TYPE(switches::kPrefetchSearchResults) |
1999 }, | 1999 }, |
| 2000 #if defined(ENABLE_APP_LIST) |
| 2001 { |
| 2002 "enable-experimental-app-list", |
| 2003 IDS_FLAGS_ENABLE_EXPERIMENTAL_APP_LIST_NAME, |
| 2004 IDS_FLAGS_ENABLE_EXPERIMENTAL_APP_LIST_DESCRIPTION, |
| 2005 kOsWin | kOsLinux | kOsCrOS, |
| 2006 SINGLE_VALUE_TYPE(app_list::switches::kEnableExperimentalAppList) |
| 2007 }, |
| 2008 #endif |
2000 }; | 2009 }; |
2001 | 2010 |
2002 const Experiment* experiments = kExperiments; | 2011 const Experiment* experiments = kExperiments; |
2003 size_t num_experiments = arraysize(kExperiments); | 2012 size_t num_experiments = arraysize(kExperiments); |
2004 | 2013 |
2005 // Stores and encapsulates the little state that about:flags has. | 2014 // Stores and encapsulates the little state that about:flags has. |
2006 class FlagsState { | 2015 class FlagsState { |
2007 public: | 2016 public: |
2008 FlagsState() : needs_restart_(false) {} | 2017 FlagsState() : needs_restart_(false) {} |
2009 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 2018 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2501 } | 2510 } |
2502 | 2511 |
2503 const Experiment* GetExperiments(size_t* count) { | 2512 const Experiment* GetExperiments(size_t* count) { |
2504 *count = num_experiments; | 2513 *count = num_experiments; |
2505 return experiments; | 2514 return experiments; |
2506 } | 2515 } |
2507 | 2516 |
2508 } // namespace testing | 2517 } // namespace testing |
2509 | 2518 |
2510 } // namespace about_flags | 2519 } // namespace about_flags |
OLD | NEW |