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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 110413007: Fix truncated location bar on maximized streamlined hosted apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/toolbar/toolbar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index 7d85ca0f83cd387d52e2034b8053d50cf27d39a1..57ae5142518a66ad7c14c25021aa607940d7ce26 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -289,8 +289,12 @@ void LocationBarView::Init() {
AddChildView(ev_bubble_view_);
// Initialize the Omnibox view.
- omnibox_view_ = new OmniboxViewViews(this, profile(), command_updater(),
- is_popup_mode_, this, font_list);
+ omnibox_view_ = new OmniboxViewViews(
+ this, profile(), command_updater(),
+ is_popup_mode_ ||
+ (browser_->is_app() && CommandLine::ForCurrentProcess()->
+ HasSwitch(switches::kEnableStreamlinedHostedApps)),
+ this, font_list);
omnibox_view_->Init();
omnibox_view_->SetFocusable(true);
AddChildView(omnibox_view_);
« no previous file with comments | « no previous file | chrome/browser/ui/views/toolbar/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698