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

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

Issue 10827142: Add a switch for enabling the WebsiteSettingsUI to the about:flags page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 }, 870 },
871 #if defined(USE_ASH) 871 #if defined(USE_ASH)
872 { 872 {
873 "ash-debug-shortcuts", 873 "ash-debug-shortcuts",
874 IDS_FLAGS_DEBUG_SHORTCUTS_NAME, 874 IDS_FLAGS_DEBUG_SHORTCUTS_NAME,
875 IDS_FLAGS_DEBUG_SHORTCUTS_DESCRIPTION, 875 IDS_FLAGS_DEBUG_SHORTCUTS_DESCRIPTION,
876 kOsAll, 876 kOsAll,
877 SINGLE_VALUE_TYPE(ash::switches::kAshDebugShortcuts), 877 SINGLE_VALUE_TYPE(ash::switches::kAshDebugShortcuts),
878 }, 878 },
879 #endif 879 #endif
880 {
881 "enable-website-settings", // FLAGS:RECORD_UMA
882 IDS_FLAGS_ENABLE_WEBSITE_SETTINGS_NAME,
883 IDS_FLAGS_ENABLE_WEBSITE_SETTINGS_DESCRIPTION,
884 kOsAll,
885 SINGLE_VALUE_TYPE(switches::kEnableWebsiteSettings),
886 },
880 }; 887 };
881 888
882 const Experiment* experiments = kExperiments; 889 const Experiment* experiments = kExperiments;
883 size_t num_experiments = arraysize(kExperiments); 890 size_t num_experiments = arraysize(kExperiments);
884 891
885 // Stores and encapsulates the little state that about:flags has. 892 // Stores and encapsulates the little state that about:flags has.
886 class FlagsState { 893 class FlagsState {
887 public: 894 public:
888 FlagsState() : needs_restart_(false) {} 895 FlagsState() : needs_restart_(false) {}
889 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 896 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 } 1313 }
1307 1314
1308 const Experiment* GetExperiments(size_t* count) { 1315 const Experiment* GetExperiments(size_t* count) {
1309 *count = num_experiments; 1316 *count = num_experiments;
1310 return experiments; 1317 return experiments;
1311 } 1318 }
1312 1319
1313 } // namespace testing 1320 } // namespace testing
1314 1321
1315 } // namespace about_flags 1322 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698