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

Unified Diff: chrome/browser/ui/views/frame/browser_view.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: address review comments 1 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/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index e962922213fee663670f06fe6d8399768792b66c..ff67076562b306573a41215b8ed50ecae2db7b41 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1997,15 +1997,18 @@ void BrowserView::Init() {
ignore_layout_ = false;
#if defined(USE_AURA)
+ // Add launcher item if we're using the launcher and this type of browser
+ // needs an item.
aura_shell::LauncherItemType type;
- if (ChromeShellDelegate::ShouldCreateLauncherItemForBrowser(browser_.get(),
+ if (aura_shell::Shell::GetInstance()->launcher() &&
+ ChromeShellDelegate::ShouldCreateLauncherItemForBrowser(browser_.get(),
&type)) {
icon_updater_.reset(new LauncherIconUpdater(
browser_->tabstrip_model(),
aura_shell::Shell::GetInstance()->launcher()->model(),
frame_->GetNativeWindow()));
}
-#endif
+#endif // defined(USE_AURA)
}
void BrowserView::LoadingAnimationCallback() {

Powered by Google App Engine
This is Rietveld 408576698