Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 9538010: Add --enable-devtools-experiments to about:flags (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 kOsAll, 574 kOsAll,
575 SINGLE_VALUE_TYPE(switches::kWebUITaskManager) 575 SINGLE_VALUE_TYPE(switches::kWebUITaskManager)
576 }, 576 },
577 { 577 {
578 "disable-ntp-other-sessions-menu", 578 "disable-ntp-other-sessions-menu",
579 IDS_FLAGS_NTP_OTHER_SESSIONS_MENU_NAME, 579 IDS_FLAGS_NTP_OTHER_SESSIONS_MENU_NAME,
580 IDS_FLAGS_NTP_OTHER_SESSIONS_MENU_DESCRIPTION, 580 IDS_FLAGS_NTP_OTHER_SESSIONS_MENU_DESCRIPTION,
581 kOsAll, 581 kOsAll,
582 SINGLE_VALUE_TYPE(switches::kDisableNTPOtherSessionsMenu) 582 SINGLE_VALUE_TYPE(switches::kDisableNTPOtherSessionsMenu)
583 }, 583 },
584 {
585 "enable-devtools-experiments",
586 IDS_FLAGS_ENABLE_DEVTOOLS_EXPERIMENTS_NAME,
587 IDS_FLAGS_ENABLE_DEVTOOLS_EXPERIMENTS_DESCRIPTION,
588 kOsAll,
589 SINGLE_VALUE_TYPE(switches::kEnableDevToolsExperiments)
590 },
584 }; 591 };
585 592
586 const Experiment* experiments = kExperiments; 593 const Experiment* experiments = kExperiments;
587 size_t num_experiments = arraysize(kExperiments); 594 size_t num_experiments = arraysize(kExperiments);
588 595
589 // Stores and encapsulates the little state that about:flags has. 596 // Stores and encapsulates the little state that about:flags has.
590 class FlagsState { 597 class FlagsState {
591 public: 598 public:
592 FlagsState() : needs_restart_(false) {} 599 FlagsState() : needs_restart_(false) {}
593 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 600 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 } 1026 }
1020 1027
1021 const Experiment* GetExperiments(size_t* count) { 1028 const Experiment* GetExperiments(size_t* count) {
1022 *count = num_experiments; 1029 *count = num_experiments;
1023 return experiments; 1030 return experiments;
1024 } 1031 }
1025 1032
1026 } // namespace testing 1033 } // namespace testing
1027 1034
1028 } // namespace about_flags 1035 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698