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

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

Issue 10831383: No browserless Panels unless enabled by flag. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | 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 10bf8ca84798f76c0a28ac5bde66d427a64b3ebe..9f50e8ee228ce1093e002477a1d9ae852c2ed512 100644
--- a/chrome/browser/ui/panels/panel_manager.cc
+++ b/chrome/browser/ui/panels/panel_manager.cc
@@ -93,8 +93,14 @@ bool PanelManager::UseBrowserlessPanels() {
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kOldPanels))
return false;
- return chrome::VersionInfo::GetChannel() <=
- chrome::VersionInfo::CHANNEL_UNKNOWN;
+ // http://crbug.com/143506
+ // TODO(jennb): Remove after channel check can be used.
+// return chrome::VersionInfo::GetChannel() <= chrome::VersionInfo::CHANNEL_DEV;
+ // For now, use former flag to turn on browserless panels.
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kBrowserlessPanels))
+ return true;
+
+ return false;
}
PanelManager::PanelManager()
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698