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 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1975 }, | 1975 }, |
1976 #if defined(OS_ANDROID) | 1976 #if defined(OS_ANDROID) |
1977 { | 1977 { |
1978 "app-banners", | 1978 "app-banners", |
1979 IDS_FLAGS_DISABLE_APP_BANNERS_NAME, | 1979 IDS_FLAGS_DISABLE_APP_BANNERS_NAME, |
1980 IDS_FLAGS_DISABLE_APP_BANNERS_DESCRIPTION, | 1980 IDS_FLAGS_DISABLE_APP_BANNERS_DESCRIPTION, |
1981 kOsAndroid, | 1981 kOsAndroid, |
1982 SINGLE_VALUE_TYPE(switches::kDisableAppBanners) | 1982 SINGLE_VALUE_TYPE(switches::kDisableAppBanners) |
1983 }, | 1983 }, |
1984 #endif | 1984 #endif |
1985 { | |
1986 "enable-experimental-app-list", | |
1987 IDS_FLAGS_ENABLE_EXPERIMENTAL_APP_LIST_NAME, | |
1988 IDS_FLAGS_ENABLE_EXPERIMENTAL_APP_LIST_DESCRIPTION, | |
1989 kOsCrOS | kOsWin, | |
benwells
2014/02/14 03:03:12
Can we have it on Linux too? Mac should come soon
calamity
2014/02/17 00:13:06
Done. Will implement the actual centering in anoth
| |
1990 SINGLE_VALUE_TYPE(app_list::switches::kEnableExperimentalAppList) | |
1991 }, | |
1985 }; | 1992 }; |
1986 | 1993 |
1987 const Experiment* experiments = kExperiments; | 1994 const Experiment* experiments = kExperiments; |
1988 size_t num_experiments = arraysize(kExperiments); | 1995 size_t num_experiments = arraysize(kExperiments); |
1989 | 1996 |
1990 // Stores and encapsulates the little state that about:flags has. | 1997 // Stores and encapsulates the little state that about:flags has. |
1991 class FlagsState { | 1998 class FlagsState { |
1992 public: | 1999 public: |
1993 FlagsState() : needs_restart_(false) {} | 2000 FlagsState() : needs_restart_(false) {} |
1994 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 2001 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2486 } | 2493 } |
2487 | 2494 |
2488 const Experiment* GetExperiments(size_t* count) { | 2495 const Experiment* GetExperiments(size_t* count) { |
2489 *count = num_experiments; | 2496 *count = num_experiments; |
2490 return experiments; | 2497 return experiments; |
2491 } | 2498 } |
2492 | 2499 |
2493 } // namespace testing | 2500 } // namespace testing |
2494 | 2501 |
2495 } // namespace about_flags | 2502 } // namespace about_flags |
OLD | NEW |