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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.cc

Issue 11830008: ash/immersive mode: Hide the launcher when entering immersive mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: call up via ShellDelegate Created 7 years, 11 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
Index: chrome/browser/ui/ash/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index 9b22a5697f6a5b7fd078baeb435a0fc3c9cb7c0d..220589bfd11884f87ad3479617356630c62644da 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -387,6 +387,14 @@ bool ChromeShellDelegate::ShouldAlwaysShowAccessibilityMenu() const {
#endif
}
+bool ChromeShellDelegate::IsImmersiveMode() const {
+ Browser* browser =
+ chrome::FindBrowserWithWindow(ash::wm::GetActiveWindow());
+ if (!browser)
+ return false;
+ return browser->window()->IsImmersiveMode();
+}
+
app_list::AppListViewDelegate*
ChromeShellDelegate::CreateAppListViewDelegate() {
DCHECK(ash::Shell::HasInstance());

Powered by Google App Engine
This is Rietveld 408576698