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

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

Issue 9566046: Add about:flags flag for the Suggestions NTP. (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
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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 SINGLE_VALUE_TYPE(ash::switches::kAshUberTray), 590 SINGLE_VALUE_TYPE(ash::switches::kAshUberTray),
591 }, 591 },
592 #endif 592 #endif
593 { 593 {
594 "enable-devtools-experiments", 594 "enable-devtools-experiments",
595 IDS_FLAGS_ENABLE_DEVTOOLS_EXPERIMENTS_NAME, 595 IDS_FLAGS_ENABLE_DEVTOOLS_EXPERIMENTS_NAME,
596 IDS_FLAGS_ENABLE_DEVTOOLS_EXPERIMENTS_DESCRIPTION, 596 IDS_FLAGS_ENABLE_DEVTOOLS_EXPERIMENTS_DESCRIPTION,
597 kOsAll, 597 kOsAll,
598 SINGLE_VALUE_TYPE(switches::kEnableDevToolsExperiments) 598 SINGLE_VALUE_TYPE(switches::kEnableDevToolsExperiments)
599 }, 599 },
600 {
601 "enable-suggestions-ntp",
602 IDS_FLAGS_SUGGESTIONS_PAGE_NAME,
603 IDS_FLAGS_SUGGESTIONS_PAGE_DESCRIPTION,
604 kOsAll,
605 SINGLE_VALUE_TYPE(switches::kEnableSuggestionsTabPage)
606 },
600 }; 607 };
601 608
602 const Experiment* experiments = kExperiments; 609 const Experiment* experiments = kExperiments;
603 size_t num_experiments = arraysize(kExperiments); 610 size_t num_experiments = arraysize(kExperiments);
604 611
605 // Stores and encapsulates the little state that about:flags has. 612 // Stores and encapsulates the little state that about:flags has.
606 class FlagsState { 613 class FlagsState {
607 public: 614 public:
608 FlagsState() : needs_restart_(false) {} 615 FlagsState() : needs_restart_(false) {}
609 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 616 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 } 1042 }
1036 1043
1037 const Experiment* GetExperiments(size_t* count) { 1044 const Experiment* GetExperiments(size_t* count) {
1038 *count = num_experiments; 1045 *count = num_experiments;
1039 return experiments; 1046 return experiments;
1040 } 1047 }
1041 1048
1042 } // namespace testing 1049 } // namespace testing
1043 1050
1044 } // namespace about_flags 1051 } // namespace about_flags
OLDNEW
« chrome/app/generated_resources.grd ('K') | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698