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

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

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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 7fcf3e5659e4158e98d8c2349ae7ca7bce4bb2ae..789fd838571e7d458b3ddb3288ee728bfdccd254 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -1268,8 +1268,10 @@ const char* LocationBarView::GetClassName() const {
}
void LocationBarView::OnBoundsChanged(const gfx::Rect& previous_bounds) {
- InstantServiceFactory::GetForProfile(profile())->OnOmniboxStartMarginChanged(
- bounds().x());
+ InstantService* instant_service =
+ InstantServiceFactory::GetForProfile(profile());
+ if (instant_service)
+ instant_service->OnOmniboxStartMarginChanged(bounds().x());
OmniboxPopupView* popup = omnibox_view_->model()->popup_model()->view();
if (popup->IsOpen())

Powered by Google App Engine
This is Rietveld 408576698