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

Unified Diff: chrome/browser/ui/panels/panel_manager.cc

Issue 10825396: [Panel refactor] use browserless Panels by default in Dev/Canary (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_manager.cc
diff --git a/chrome/browser/ui/panels/panel_manager.cc b/chrome/browser/ui/panels/panel_manager.cc
index 95744ccd3fd4178a6b23ece3fcfb0cd82483d2eb..345d8e09b564c3e0f1b614eb566910e0db2fcd7c 100644
--- a/chrome/browser/ui/panels/panel_manager.cc
+++ b/chrome/browser/ui/panels/panel_manager.cc
@@ -88,6 +88,14 @@ bool PanelManager::ShouldUsePanels(const std::string& extension_id) {
return true;
}
+// static
+bool PanelManager::UseBrowserlessPanels() {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kOldPanels))
+ return false;
+
+ return chrome::VersionInfo::GetChannel() <= chrome::VersionInfo::CHANNEL_DEV;
+}
+
PanelManager::PanelManager()
: panel_mouse_watcher_(PanelMouseWatcher::Create()),
auto_sizing_enabled_(true) {
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698