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

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: rebase, fix unit test build 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 9224b144964cd29819a611289ffc5772aad4cb0f..f5e15b6f72025d4addded62bea0d42484d0f4e9e 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1998,15 +1998,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() {
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698