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 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1891 #if !defined(OS_ANDROID) | 1891 #if !defined(OS_ANDROID) |
1892 { | 1892 { |
1893 "enable-message-center-always-scroll-up-upon-notification-removal", | 1893 "enable-message-center-always-scroll-up-upon-notification-removal", |
1894 IDS_FLAGS_ENABLE_MESSAGE_CENTER_ALWAYS_SCROLL_UP_UPON_REMOVAL_NAME, | 1894 IDS_FLAGS_ENABLE_MESSAGE_CENTER_ALWAYS_SCROLL_UP_UPON_REMOVAL_NAME, |
1895 IDS_FLAGS_ENABLE_MESSAGE_CENTER_ALWAYS_SCROLL_UP_UPON_REMOVAL_DESCRIPTION, | 1895 IDS_FLAGS_ENABLE_MESSAGE_CENTER_ALWAYS_SCROLL_UP_UPON_REMOVAL_DESCRIPTION, |
1896 kOsDesktop, | 1896 kOsDesktop, |
1897 SINGLE_VALUE_TYPE( | 1897 SINGLE_VALUE_TYPE( |
1898 switches::kEnableMessageCenterAlwaysScrollUpUponNotificationRemoval) | 1898 switches::kEnableMessageCenterAlwaysScrollUpUponNotificationRemoval) |
1899 }, | 1899 }, |
1900 #endif | 1900 #endif |
| 1901 #if defined(OS_CHROMEOS) |
| 1902 { |
| 1903 "wake-on-packets", |
| 1904 IDS_FLAGS_WAKE_ON_PACKETS_NAME, |
| 1905 IDS_FLAGS_WAKE_ON_PACKETS_DESCRIPTION, |
| 1906 kOsCrOSOwnerOnly, |
| 1907 SINGLE_VALUE_TYPE(chromeos::switches::kWakeOnPackets) |
| 1908 }, |
| 1909 #endif // OS_CHROMEOS |
1901 // NOTE: Adding new command-line switches requires adding corresponding | 1910 // NOTE: Adding new command-line switches requires adding corresponding |
1902 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 1911 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
1903 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 1912 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
1904 }; | 1913 }; |
1905 | 1914 |
1906 const Experiment* experiments = kExperiments; | 1915 const Experiment* experiments = kExperiments; |
1907 size_t num_experiments = arraysize(kExperiments); | 1916 size_t num_experiments = arraysize(kExperiments); |
1908 | 1917 |
1909 // Stores and encapsulates the little state that about:flags has. | 1918 // Stores and encapsulates the little state that about:flags has. |
1910 class FlagsState { | 1919 class FlagsState { |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2477 } | 2486 } |
2478 | 2487 |
2479 const Experiment* GetExperiments(size_t* count) { | 2488 const Experiment* GetExperiments(size_t* count) { |
2480 *count = num_experiments; | 2489 *count = num_experiments; |
2481 return experiments; | 2490 return experiments; |
2482 } | 2491 } |
2483 | 2492 |
2484 } // namespace testing | 2493 } // namespace testing |
2485 | 2494 |
2486 } // namespace about_flags | 2495 } // namespace about_flags |
OLD | NEW |