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

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

Issue 7328026: Add --enable-panels flag to about:flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed tabs in .grd file. Created 9 years, 5 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) 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 kOsAll, 363 kOsAll,
364 SINGLE_VALUE_TYPE(switches::kPrerenderFromOmnibox) 364 SINGLE_VALUE_TYPE(switches::kPrerenderFromOmnibox)
365 }, 365 },
366 { 366 {
367 "enable-autofill-feedback", 367 "enable-autofill-feedback",
368 IDS_FLAGS_ENABLE_ADDITIONAL_AUTOFILL_FEEDBACK_NAME, 368 IDS_FLAGS_ENABLE_ADDITIONAL_AUTOFILL_FEEDBACK_NAME,
369 IDS_FLAGS_ENABLE_ADDITIONAL_AUTOFILL_FEEDBACK_DESCRIPTION, 369 IDS_FLAGS_ENABLE_ADDITIONAL_AUTOFILL_FEEDBACK_DESCRIPTION,
370 kOsAll, 370 kOsAll,
371 SINGLE_VALUE_TYPE(switches::kEnableAutofillFeedback) 371 SINGLE_VALUE_TYPE(switches::kEnableAutofillFeedback)
372 }, 372 },
373 {
374 "panels",
375 IDS_FLAGS_ENABLE_PANELS_NAME,
376 IDS_FLAGS_ENABLE_PANELS_DESCRIPTION,
377 kOsAll,
378 SINGLE_VALUE_TYPE(switches::kEnablePanels)
379 },
373 }; 380 };
374 381
375 const Experiment* experiments = kExperiments; 382 const Experiment* experiments = kExperiments;
376 size_t num_experiments = arraysize(kExperiments); 383 size_t num_experiments = arraysize(kExperiments);
377 384
378 // Stores and encapsulates the little state that about:flags has. 385 // Stores and encapsulates the little state that about:flags has.
379 class FlagsState { 386 class FlagsState {
380 public: 387 public:
381 FlagsState() : needs_restart_(false) {} 388 FlagsState() : needs_restart_(false) {}
382 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 389 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 } 810 }
804 811
805 const Experiment* GetExperiments(size_t* count) { 812 const Experiment* GetExperiments(size_t* count) {
806 *count = num_experiments; 813 *count = num_experiments;
807 return experiments; 814 return experiments;
808 } 815 }
809 816
810 } // namespace testing 817 } // namespace testing
811 818
812 } // namespace about_flags 819 } // 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