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 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1839 }, | 1839 }, |
1840 #if defined(TOOLKIT_VIEWS) | 1840 #if defined(TOOLKIT_VIEWS) |
1841 { | 1841 { |
1842 "views-use-rect-based-targeting", // FLAGS:RECORD_UMA | 1842 "views-use-rect-based-targeting", // FLAGS:RECORD_UMA |
1843 IDS_FLAGS_VIEWS_USE_RECT_BASED_TARGETING_NAME, | 1843 IDS_FLAGS_VIEWS_USE_RECT_BASED_TARGETING_NAME, |
1844 IDS_FLAGS_VIEWS_USE_RECT_BASED_TARGETING_DESCRIPTION, | 1844 IDS_FLAGS_VIEWS_USE_RECT_BASED_TARGETING_DESCRIPTION, |
1845 kOsCrOS | kOsWin, | 1845 kOsCrOS | kOsWin, |
1846 SINGLE_VALUE_TYPE(views::switches::kViewsUseRectBasedTargeting) | 1846 SINGLE_VALUE_TYPE(views::switches::kViewsUseRectBasedTargeting) |
1847 }, | 1847 }, |
1848 #endif | 1848 #endif |
| 1849 { |
| 1850 "enable-apps-show-on-first-paint", |
| 1851 IDS_FLAGS_ENABLE_APPS_SHOW_ON_FIRST_PAINT_NAME, |
| 1852 IDS_FLAGS_ENABLE_APPS_SHOW_ON_FIRST_PAINT_DESCRIPTION, |
| 1853 kOsDesktop, |
| 1854 SINGLE_VALUE_TYPE(switches::kEnableAppsShowOnFirstPaint) |
| 1855 }, |
1849 }; | 1856 }; |
1850 | 1857 |
1851 const Experiment* experiments = kExperiments; | 1858 const Experiment* experiments = kExperiments; |
1852 size_t num_experiments = arraysize(kExperiments); | 1859 size_t num_experiments = arraysize(kExperiments); |
1853 | 1860 |
1854 // Stores and encapsulates the little state that about:flags has. | 1861 // Stores and encapsulates the little state that about:flags has. |
1855 class FlagsState { | 1862 class FlagsState { |
1856 public: | 1863 public: |
1857 FlagsState() : needs_restart_(false) {} | 1864 FlagsState() : needs_restart_(false) {} |
1858 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1865 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2339 } | 2346 } |
2340 | 2347 |
2341 const Experiment* GetExperiments(size_t* count) { | 2348 const Experiment* GetExperiments(size_t* count) { |
2342 *count = num_experiments; | 2349 *count = num_experiments; |
2343 return experiments; | 2350 return experiments; |
2344 } | 2351 } |
2345 | 2352 |
2346 } // namespace testing | 2353 } // namespace testing |
2347 | 2354 |
2348 } // namespace about_flags | 2355 } // namespace about_flags |
OLD | NEW |