OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
309 kOsAll, | 309 kOsAll, |
310 SINGLE_VALUE_TYPE(switches::kRestrictInstantToSearch) | 310 SINGLE_VALUE_TYPE(switches::kRestrictInstantToSearch) |
311 }, | 311 }, |
312 { | 312 { |
313 "indexeddb-use-leveldb", // FLAGS:RECORD_UMA | 313 "indexeddb-use-leveldb", // FLAGS:RECORD_UMA |
314 IDS_FLAGS_INDEXEDDB_USE_LEVELDB_NAME, | 314 IDS_FLAGS_INDEXEDDB_USE_LEVELDB_NAME, |
315 IDS_FLAGS_INDEXEDDB_USE_LEVELDB_DESCRIPTION, | 315 IDS_FLAGS_INDEXEDDB_USE_LEVELDB_DESCRIPTION, |
316 kOsAll, | 316 kOsAll, |
317 SINGLE_VALUE_TYPE(switches::kLevelDBIndexedDatabase) | 317 SINGLE_VALUE_TYPE(switches::kLevelDBIndexedDatabase) |
318 }, | 318 }, |
319 #if defined(ENABLE_SMOOTH_SCROLLING) | |
320 { | |
321 "enable-smooth-scrolling", // FLAGS:RECORD_UMA | |
322 IDS_FLAGS_ENABLE_SMOOTH_SCROLLING_NAME, | |
323 IDS_FLAGS_ENABLE_SMOOTH_SCROLLING_DESCRIPTION, | |
324 kOsAll, | |
vangelis
2011/06/02 20:33:56
If your WebKit patch is only available on some pla
Scott Byer
2011/06/02 21:07:26
See patch set #1. I think by the time we are ready
vangelis
2011/06/02 21:13:12
Ah, ok. That makes sense. I missed the fact that
| |
325 SINGLE_VALUE_TYPE(switches::kEnableSmoothScrolling) | |
326 }, | |
327 #endif | |
319 }; | 328 }; |
320 | 329 |
321 const Experiment* experiments = kExperiments; | 330 const Experiment* experiments = kExperiments; |
322 size_t num_experiments = arraysize(kExperiments); | 331 size_t num_experiments = arraysize(kExperiments); |
323 | 332 |
324 // Stores and encapsulates the little state that about:flags has. | 333 // Stores and encapsulates the little state that about:flags has. |
325 class FlagsState { | 334 class FlagsState { |
326 public: | 335 public: |
327 FlagsState() : needs_restart_(false) {} | 336 FlagsState() : needs_restart_(false) {} |
328 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 337 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
749 } | 758 } |
750 | 759 |
751 const Experiment* GetExperiments(size_t* count) { | 760 const Experiment* GetExperiments(size_t* count) { |
752 *count = num_experiments; | 761 *count = num_experiments; |
753 return experiments; | 762 return experiments; |
754 } | 763 } |
755 | 764 |
756 } // namespace testing | 765 } // namespace testing |
757 | 766 |
758 } // namespace about_flags | 767 } // namespace about_flags |
OLD | NEW |