| 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 bb7929e84c17c95c4d30ce892b8e413b889574d9..5536a492e6f6f98592530eaa5fab5081a90c4c40 100644
|
| --- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
| +++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
| @@ -213,7 +213,7 @@ void LocationBarView::Init() {
|
| gfx::FontList bubble_font_list =
|
| font_list.DeriveWithHeightUpperBound(bubble_height);
|
| keyword_hint_view_ = new KeywordHintView(
|
| - profile(), font_list, bubble_font_list, location_height,
|
| + this, profile(), font_list, bubble_font_list, location_height,
|
| GetColor(LocationBarView::DEEMPHASIZED_TEXT), background_color);
|
| AddChildView(keyword_hint_view_);
|
|
|
| @@ -709,6 +709,15 @@ void LocationBarView::OnDefaultZoomLevelChanged() {
|
| RefreshZoomView();
|
| }
|
|
|
| +void LocationBarView::ButtonPressed(views::Button* sender,
|
| + const ui::Event& event) {
|
| + DCHECK_EQ(keyword_hint_view_, sender);
|
| + DCHECK(event.IsMouseEvent() || event.IsGestureEvent());
|
| + omnibox_view_->model()->AcceptKeyword(
|
| + event.IsMouseEvent() ? KeywordModeEntryMethod::CLICK_ON_VIEW
|
| + : KeywordModeEntryMethod::TAP_ON_VIEW);
|
| +}
|
| +
|
| bool LocationBarView::RefreshSaveCreditCardIconView() {
|
| WebContents* web_contents = GetWebContents();
|
| if (!web_contents)
|
|
|