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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 kOsAll, | 318 kOsAll, |
319 SINGLE_VALUE_TYPE(switches::kMultiProfiles) | 319 SINGLE_VALUE_TYPE(switches::kMultiProfiles) |
320 }, | 320 }, |
321 { | 321 { |
322 "restrict-instant-to-search", | 322 "restrict-instant-to-search", |
323 IDS_FLAGS_RESTRICT_INSTANT_TO_SEARCH_NAME, | 323 IDS_FLAGS_RESTRICT_INSTANT_TO_SEARCH_NAME, |
324 IDS_FLAGS_RESTRICT_INSTANT_TO_SEARCH_DESCRIPTION, | 324 IDS_FLAGS_RESTRICT_INSTANT_TO_SEARCH_DESCRIPTION, |
325 kOsAll, | 325 kOsAll, |
326 SINGLE_VALUE_TYPE(switches::kRestrictInstantToSearch) | 326 SINGLE_VALUE_TYPE(switches::kRestrictInstantToSearch) |
327 }, | 327 }, |
328 { | |
329 "websocket-over-spdy", | |
330 IDS_FLAGS_WEBSOCKET_OVER_SPDY_NAME, | |
331 IDS_FLAGS_WEBSOCKET_OVER_SPDY_DESCRIPTION, | |
332 kOsAll, | |
333 SINGLE_VALUE_TYPE(switches::kEnableWebSocketOverSpdy) | |
Yuta Kitamura
2011/05/20 02:59:48
I think we should add about:flags menu item only a
| |
334 }, | |
328 }; | 335 }; |
329 | 336 |
330 const Experiment* experiments = kExperiments; | 337 const Experiment* experiments = kExperiments; |
331 size_t num_experiments = arraysize(kExperiments); | 338 size_t num_experiments = arraysize(kExperiments); |
332 | 339 |
333 // Stores and encapsulates the little state that about:flags has. | 340 // Stores and encapsulates the little state that about:flags has. |
334 class FlagsState { | 341 class FlagsState { |
335 public: | 342 public: |
336 FlagsState() : needs_restart_(false) {} | 343 FlagsState() : needs_restart_(false) {} |
337 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 344 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
747 } | 754 } |
748 | 755 |
749 const Experiment* GetExperiments(size_t* count) { | 756 const Experiment* GetExperiments(size_t* count) { |
750 *count = num_experiments; | 757 *count = num_experiments; |
751 return experiments; | 758 return experiments; |
752 } | 759 } |
753 | 760 |
754 } // namespace testing | 761 } // namespace testing |
755 | 762 |
756 } // namespace about_flags | 763 } // namespace about_flags |
OLD | NEW |