| 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())
|
|
|