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 { |
| 320 "preload-instant-search", |
| 321 IDS_FLAGS_PRELOAD_INSTANT_SEARCH_NAME, |
| 322 IDS_FLAGS_PRELOAD_INSTANT_SEARCH_DESCRIPTION, |
| 323 kOsAll, |
| 324 SINGLE_VALUE_TYPE(switches::kPreloadInstantSearch) |
| 325 }, |
319 }; | 326 }; |
320 | 327 |
321 const Experiment* experiments = kExperiments; | 328 const Experiment* experiments = kExperiments; |
322 size_t num_experiments = arraysize(kExperiments); | 329 size_t num_experiments = arraysize(kExperiments); |
323 | 330 |
324 // Stores and encapsulates the little state that about:flags has. | 331 // Stores and encapsulates the little state that about:flags has. |
325 class FlagsState { | 332 class FlagsState { |
326 public: | 333 public: |
327 FlagsState() : needs_restart_(false) {} | 334 FlagsState() : needs_restart_(false) {} |
328 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 335 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 } | 756 } |
750 | 757 |
751 const Experiment* GetExperiments(size_t* count) { | 758 const Experiment* GetExperiments(size_t* count) { |
752 *count = num_experiments; | 759 *count = num_experiments; |
753 return experiments; | 760 return experiments; |
754 } | 761 } |
755 | 762 |
756 } // namespace testing | 763 } // namespace testing |
757 | 764 |
758 } // namespace about_flags | 765 } // namespace about_flags |
OLD | NEW |