Chromium Code Reviews| 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 1813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1824 SINGLE_VALUE_TYPE(views::switches::kViewsUseRectBasedTargeting) | 1824 SINGLE_VALUE_TYPE(views::switches::kViewsUseRectBasedTargeting) |
| 1825 }, | 1825 }, |
| 1826 #endif | 1826 #endif |
| 1827 { | 1827 { |
| 1828 "enable-apps-show-on-first-paint", | 1828 "enable-apps-show-on-first-paint", |
| 1829 IDS_FLAGS_ENABLE_APPS_SHOW_ON_FIRST_PAINT_NAME, | 1829 IDS_FLAGS_ENABLE_APPS_SHOW_ON_FIRST_PAINT_NAME, |
| 1830 IDS_FLAGS_ENABLE_APPS_SHOW_ON_FIRST_PAINT_DESCRIPTION, | 1830 IDS_FLAGS_ENABLE_APPS_SHOW_ON_FIRST_PAINT_DESCRIPTION, |
| 1831 kOsDesktop, | 1831 kOsDesktop, |
| 1832 SINGLE_VALUE_TYPE(switches::kEnableAppsShowOnFirstPaint) | 1832 SINGLE_VALUE_TYPE(switches::kEnableAppsShowOnFirstPaint) |
| 1833 }, | 1833 }, |
| 1834 { | |
| 1835 "disable-enhanced-bookmarks", | |
|
Yaron
2013/11/20 01:40:05
Seems like this would show always though. Can we r
yefimt
2013/11/21 22:40:39
Done.
| |
| 1836 IDS_FLAGS_DISABLE_ENHANCED_BOOKMARKS_NAME, | |
| 1837 IDS_FLAGS_DISABLE_ENHANCED_BOOKMARKS_DESCRIPTION, | |
| 1838 kOsDesktop, | |
| 1839 SINGLE_VALUE_TYPE_AND_VALUE(switches::kDisableEnhancedBookmarks, "1") | |
| 1840 }, | |
|
Finnur
2013/11/20 13:55:15
I think we should strive towards having only enabl
yefimt
2013/11/21 22:40:39
Done.
| |
| 1834 }; | 1841 }; |
| 1835 | 1842 |
| 1836 const Experiment* experiments = kExperiments; | 1843 const Experiment* experiments = kExperiments; |
| 1837 size_t num_experiments = arraysize(kExperiments); | 1844 size_t num_experiments = arraysize(kExperiments); |
| 1838 | 1845 |
| 1839 // Stores and encapsulates the little state that about:flags has. | 1846 // Stores and encapsulates the little state that about:flags has. |
| 1840 class FlagsState { | 1847 class FlagsState { |
| 1841 public: | 1848 public: |
| 1842 FlagsState() : needs_restart_(false) {} | 1849 FlagsState() : needs_restart_(false) {} |
| 1843 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1850 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2324 } | 2331 } |
| 2325 | 2332 |
| 2326 const Experiment* GetExperiments(size_t* count) { | 2333 const Experiment* GetExperiments(size_t* count) { |
| 2327 *count = num_experiments; | 2334 *count = num_experiments; |
| 2328 return experiments; | 2335 return experiments; |
| 2329 } | 2336 } |
| 2330 | 2337 |
| 2331 } // namespace testing | 2338 } // namespace testing |
| 2332 | 2339 |
| 2333 } // namespace about_flags | 2340 } // namespace about_flags |
| OLD | NEW |