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_); |