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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc

Issue 14584004: Remove ash-disable-launcher-per-display flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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/ash/launcher/chrome_launcher_controller_per_app.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc
index 575eae4ddf1e6a505127a182811b720849279f2f..9eebfcd03df7ea205400ba6042b5e7ea9c20efbe 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc
@@ -645,11 +645,7 @@ void ChromeLauncherControllerPerBrowser::SetAppImage(
void ChromeLauncherControllerPerBrowser::OnAutoHideBehaviorChanged(
ash::ShelfAutoHideBehavior new_behavior) {
std::string behavior_string;
- ash::Shell::RootWindowList root_windows;
- if (ash::Shell::IsLauncherPerDisplayEnabled())
- root_windows = ash::Shell::GetAllRootWindows();
- else
- root_windows.push_back(ash::Shell::GetPrimaryRootWindow());
+ ash::Shell::RootWindowList root_windows = ash::Shell::GetAllRootWindows();
for (ash::Shell::RootWindowList::const_iterator iter =
root_windows.begin();
@@ -1272,11 +1268,7 @@ void ChromeLauncherControllerPerBrowser::SetShelfAutoHideBehaviorPrefs(
}
void ChromeLauncherControllerPerBrowser::SetShelfAutoHideBehaviorFromPrefs() {
- ash::Shell::RootWindowList root_windows;
- if (ash::Shell::IsLauncherPerDisplayEnabled())
- root_windows = ash::Shell::GetAllRootWindows();
- else
- root_windows.push_back(ash::Shell::GetPrimaryRootWindow());
+ ash::Shell::RootWindowList root_windows = ash::Shell::GetAllRootWindows();
for (ash::Shell::RootWindowList::const_iterator iter = root_windows.begin();
iter != root_windows.end(); ++iter) {
@@ -1290,11 +1282,7 @@ void ChromeLauncherControllerPerBrowser::SetShelfAlignmentFromPrefs() {
switches::kShowLauncherAlignmentMenu))
return;
- ash::Shell::RootWindowList root_windows;
- if (ash::Shell::IsLauncherPerDisplayEnabled())
- root_windows = ash::Shell::GetAllRootWindows();
- else
- root_windows.push_back(ash::Shell::GetPrimaryRootWindow());
+ ash::Shell::RootWindowList root_windows = ash::Shell::GetAllRootWindows();
for (ash::Shell::RootWindowList::const_iterator iter = root_windows.begin();
iter != root_windows.end(); ++iter) {
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698