| 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 e7906c7d0842bd01a0f8591e81acaacaebd6ed7b..a0a25b2e0b58e67663d72decdfe8acb57d27ede3 100644
|
| --- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
| +++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
| @@ -903,6 +903,10 @@ std::wstring LocationBarView::GetTitle() const {
|
| return UTF16ToWideHack(GetTabContentsFromDelegate(delegate_)->GetTitle());
|
| }
|
|
|
| +bool LocationBarView::IsKeywordHintVisible() const {
|
| + return keyword_hint_view_->IsVisible();
|
| +}
|
| +
|
| int LocationBarView::AvailableWidth(int location_bar_width) {
|
| return location_bar_width - location_entry_->TextWidth();
|
| }
|
| @@ -1058,7 +1062,7 @@ bool LocationBarView::SkipDefaultKeyEventProcessing(const views::KeyEvent& e) {
|
| // Return true so that the edit sees the tab and commits the suggestion.
|
| return true;
|
| }
|
| - if (keyword_hint_view_->IsVisible() && !e.IsShiftDown()) {
|
| + if (IsKeywordHintVisible() && !e.IsShiftDown()) {
|
| // Return true so the edit gets the tab event and enters keyword mode.
|
| return true;
|
| }
|
|
|