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

Unified Diff: chrome/browser/ui/views/aura/chrome_shell_delegate.cc

Issue 8895003: Aura: Add --aura-laptop-mode to fill the workspace with a single window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: maximize ALL the windows Created 9 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
Index: chrome/browser/ui/views/aura/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/views/aura/chrome_shell_delegate.cc b/chrome/browser/ui/views/aura/chrome_shell_delegate.cc
index 911c4670d05f9ca585954218da287c420688ab10..b4af97337572f90defa2e7ea8c85124a489f4044 100644
--- a/chrome/browser/ui/views/aura/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/views/aura/chrome_shell_delegate.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/ui/views/aura/status_area_host_aura.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "ui/aura/window.h"
+#include "ui/aura_shell/shell.h"
sky 2011/12/12 15:46:29 sort
James Cook 2011/12/12 18:33:36 Done.
#include "ui/aura_shell/launcher/launcher_types.h"
// static
@@ -32,6 +33,9 @@ StatusAreaView* ChromeShellDelegate::GetStatusArea() {
bool ChromeShellDelegate::ShouldCreateLauncherItemForBrowser(
Browser* browser,
aura_shell::LauncherItemType* type) {
+ // Don't create items if we don't have a launcher at all.
+ if (!aura_shell::Shell::GetInstance()->launcher())
sky 2011/12/12 15:46:29 It doesn't seem like you create the launcher, so t
James Cook 2011/12/12 18:33:36 I was using this to avoid a null-check in BrowserV
+ return false;
if (browser->type() == Browser::TYPE_TABBED) {
*type = aura_shell::TYPE_TABBED;
return true;

Powered by Google App Engine
This is Rietveld 408576698