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

Unified Diff: ash/shell.cc

Issue 11570017: Enables storing shelf's auto_hide_behavior and alignment per display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/shell_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 0d4461c6a4f5810fda0a5940469fe0cb42bed08d..5ec2435b2f5f20b2a8b0de8547b1704e259cc9f1 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -718,8 +718,10 @@ ShelfAutoHideBehavior Shell::GetShelfAutoHideBehavior(
void Shell::SetShelfAlignment(ShelfAlignment alignment,
aura::RootWindow* root_window) {
- if (GetRootWindowController(root_window)->SetShelfAlignment(alignment))
- FOR_EACH_OBSERVER(ShellObserver, observers_, OnShelfAlignmentChanged());
+ if (GetRootWindowController(root_window)->SetShelfAlignment(alignment)) {
+ FOR_EACH_OBSERVER(
+ ShellObserver, observers_, OnShelfAlignmentChanged(root_window));
+ }
}
ShelfAlignment Shell::GetShelfAlignment(aura::RootWindow* root_window) {
« no previous file with comments | « no previous file | ash/shell_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698