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

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

Issue 1541033002: Add --disable-panels for blocking all extensions from using panels. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update histograms.xml Created 5 years 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | 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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 // Uses the system preference on Mac (a different implementation). 658 // Uses the system preference on Mac (a different implementation).
659 // On Android, this is always enabled. 659 // On Android, this is always enabled.
660 kOsLinux | kOsCrOS | kOsWin, 660 kOsLinux | kOsCrOS | kOsWin,
661 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableOverlayScrollbar, 661 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableOverlayScrollbar,
662 switches::kDisableOverlayScrollbar)}, 662 switches::kDisableOverlayScrollbar)},
663 #endif 663 #endif
664 {"enable-panels", 664 {"enable-panels",
665 IDS_FLAGS_PANELS_NAME, 665 IDS_FLAGS_PANELS_NAME,
666 IDS_FLAGS_PANELS_DESCRIPTION, 666 IDS_FLAGS_PANELS_DESCRIPTION,
667 kOsDesktop, 667 kOsDesktop,
668 SINGLE_VALUE_TYPE(switches::kEnablePanels)}, 668 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePanels,
669 switches::kDisablePanels)},
669 {// See http://crbug.com/120416 for how to remove this flag. 670 {// See http://crbug.com/120416 for how to remove this flag.
670 "save-page-as-mhtml", // FLAGS:RECORD_UMA 671 "save-page-as-mhtml", // FLAGS:RECORD_UMA
671 IDS_FLAGS_SAVE_PAGE_AS_MHTML_NAME, 672 IDS_FLAGS_SAVE_PAGE_AS_MHTML_NAME,
672 IDS_FLAGS_SAVE_PAGE_AS_MHTML_DESCRIPTION, 673 IDS_FLAGS_SAVE_PAGE_AS_MHTML_DESCRIPTION,
673 kOsMac | kOsWin | kOsLinux, 674 kOsMac | kOsWin | kOsLinux,
674 SINGLE_VALUE_TYPE(switches::kSavePageAsMHTML)}, 675 SINGLE_VALUE_TYPE(switches::kSavePageAsMHTML)},
675 {"enable-quic", 676 {"enable-quic",
676 IDS_FLAGS_QUIC_NAME, 677 IDS_FLAGS_QUIC_NAME,
677 IDS_FLAGS_QUIC_DESCRIPTION, 678 IDS_FLAGS_QUIC_DESCRIPTION,
678 kOsAll, 679 kOsAll,
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
2292 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2293 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2293 2294
2294 const FeatureEntry* GetFeatureEntries(size_t* count) { 2295 const FeatureEntry* GetFeatureEntries(size_t* count) {
2295 *count = arraysize(kFeatureEntries); 2296 *count = arraysize(kFeatureEntries);
2296 return kFeatureEntries; 2297 return kFeatureEntries;
2297 } 2298 }
2298 2299
2299 } // namespace testing 2300 } // namespace testing
2300 2301
2301 } // namespace about_flags 2302 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698