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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
254 kOsMac, // TODO(crogers): add windows and linux when FFT is ready. | 254 kOsMac, // TODO(crogers): add windows and linux when FFT is ready. |
255 SINGLE_VALUE_TYPE(switches::kEnableWebAudio) | 255 SINGLE_VALUE_TYPE(switches::kEnableWebAudio) |
256 }, | 256 }, |
257 { | 257 { |
258 "enable-history-quick-provider", | 258 "enable-history-quick-provider", |
259 IDS_FLAGS_ENABLE_HISTORY_QUICK_PROVIDER, | 259 IDS_FLAGS_ENABLE_HISTORY_QUICK_PROVIDER, |
260 IDS_FLAGS_ENABLE_HISTORY_QUICK_PROVIDER_DESCRIPTION, | 260 IDS_FLAGS_ENABLE_HISTORY_QUICK_PROVIDER_DESCRIPTION, |
261 kOsAll, | 261 kOsAll, |
262 SINGLE_VALUE_TYPE(switches::kEnableHistoryQuickProvider) | 262 SINGLE_VALUE_TYPE(switches::kEnableHistoryQuickProvider) |
263 }, | 263 }, |
264 { | |
265 "tab-title-prefix-eliding", | |
266 IDS_FLAGS_ELIDE_TAB_TITLE_PREFIX, | |
267 IDS_FLAGS_ELIDE_TAB_TITLE_PREFIX_DESCRIPTION, | |
268 kOsAll, | |
sky
2011/02/25 17:02:07
Your patch only effects windows and chromeos.
MAD
2011/02/25 20:09:13
Ho, I didn't realize that... Changed to:
kOsWin |
| |
269 SINGLE_VALUE_TYPE(switches::kElideTabTitlePrefix) | |
270 }, | |
264 }; | 271 }; |
265 | 272 |
266 const Experiment* experiments = kExperiments; | 273 const Experiment* experiments = kExperiments; |
267 size_t num_experiments = arraysize(kExperiments); | 274 size_t num_experiments = arraysize(kExperiments); |
268 | 275 |
269 // Stores and encapsulates the little state that about:flags has. | 276 // Stores and encapsulates the little state that about:flags has. |
270 class FlagsState { | 277 class FlagsState { |
271 public: | 278 public: |
272 FlagsState() : needs_restart_(false) {} | 279 FlagsState() : needs_restart_(false) {} |
273 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 280 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
685 } | 692 } |
686 | 693 |
687 const Experiment* GetExperiments(size_t* count) { | 694 const Experiment* GetExperiments(size_t* count) { |
688 *count = num_experiments; | 695 *count = num_experiments; |
689 return experiments; | 696 return experiments; |
690 } | 697 } |
691 | 698 |
692 } // namespace testing | 699 } // namespace testing |
693 | 700 |
694 } // namespace about_flags | 701 } // namespace about_flags |
OLD | NEW |