| Index: chrome/browser/views/location_bar/location_bar_view.cc
|
| diff --git a/chrome/browser/views/location_bar/location_bar_view.cc b/chrome/browser/views/location_bar/location_bar_view.cc
|
| index 7071b6736cc0ec827643fa50349dbbcc9649e13b..e03dcb7a5d3fd36b6f25f2e398af578e94e132e9 100644
|
| --- a/chrome/browser/views/location_bar/location_bar_view.cc
|
| +++ b/chrome/browser/views/location_bar/location_bar_view.cc
|
| @@ -18,6 +18,7 @@
|
| #include "chrome/browser/extensions/extensions_service.h"
|
| #include "chrome/browser/profile.h"
|
| #include "chrome/browser/search_engines/template_url_model.h"
|
| +#include "chrome/browser/tab_contents/match_preview.h"
|
| #include "chrome/browser/view_ids.h"
|
| #include "chrome/browser/views/browser_dialogs.h"
|
| #include "chrome/browser/views/location_bar/content_setting_image_view.h"
|
| @@ -711,6 +712,13 @@ void LocationBarView::OnChanged() {
|
| location_entry_->GetIcon()));
|
| Layout();
|
| SchedulePaint();
|
| +
|
| + if (MatchPreview::IsEnabled() && GetTabContents() &&
|
| + !profile_->IsOffTheRecord()) {
|
| + GURL url = location_entry_->model()->user_input_in_progress() ?
|
| + location_entry_->model()->CurrentURL() : GURL();
|
| + GetTabContents()->match_preview()->Update(url);
|
| + }
|
| }
|
|
|
| void LocationBarView::OnInputInProgress(bool in_progress) {
|
|
|