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

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

Issue 9234076: Implementation of the Extension Activity Log UI behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Dan's comments. Created 8 years, 10 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 kOsAll, 558 kOsAll,
559 SINGLE_VALUE_TYPE(switches::kDisableUberPage) 559 SINGLE_VALUE_TYPE(switches::kDisableUberPage)
560 }, 560 },
561 { 561 {
562 "enable-shadow-dom", 562 "enable-shadow-dom",
563 IDS_FLAGS_SHADOW_DOM_NAME, 563 IDS_FLAGS_SHADOW_DOM_NAME,
564 IDS_FLAGS_SHADOW_DOM_DESCRIPTION, 564 IDS_FLAGS_SHADOW_DOM_DESCRIPTION,
565 kOsAll, 565 kOsAll,
566 SINGLE_VALUE_TYPE(switches::kEnableShadowDOM) 566 SINGLE_VALUE_TYPE(switches::kEnableShadowDOM)
567 }, 567 },
568 {
569 "enable-extension-activity-ui",
570 IDS_FLAGS_ENABLE_EXTENSION_ACTIVITY_UI_NAME,
571 IDS_FLAGS_ENABLE_EXTENSION_ACTIVITY_UI_DESCRIPTION,
572 kOsAll,
573 SINGLE_VALUE_TYPE(switches::kEnableExtensionActivityUI)
574 }
568 }; 575 };
569 576
570 const Experiment* experiments = kExperiments; 577 const Experiment* experiments = kExperiments;
571 size_t num_experiments = arraysize(kExperiments); 578 size_t num_experiments = arraysize(kExperiments);
572 579
573 // Stores and encapsulates the little state that about:flags has. 580 // Stores and encapsulates the little state that about:flags has.
574 class FlagsState { 581 class FlagsState {
575 public: 582 public:
576 FlagsState() : needs_restart_(false) {} 583 FlagsState() : needs_restart_(false) {}
577 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 584 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 } 1010 }
1004 1011
1005 const Experiment* GetExperiments(size_t* count) { 1012 const Experiment* GetExperiments(size_t* count) {
1006 *count = num_experiments; 1013 *count = num_experiments;
1007 return experiments; 1014 return experiments;
1008 } 1015 }
1009 1016
1010 } // namespace testing 1017 } // namespace testing
1011 1018
1012 } // namespace about_flags 1019 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698