| Index: chrome/browser/browser.cc
|
| diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
|
| index 7118ebf13aea5a918efae343db1d9dc08d241b7c..45cf9d609abeaced3218eea6847e7bd5b06be694 100644
|
| --- a/chrome/browser/browser.cc
|
| +++ b/chrome/browser/browser.cc
|
| @@ -70,6 +70,7 @@
|
| #include "chrome/browser/sync/sync_ui_util.h"
|
| #include "chrome/browser/tab_closeable_state_watcher.h"
|
| #include "chrome/browser/tab_contents/interstitial_page.h"
|
| +#include "chrome/browser/tab_contents/match_preview.h"
|
| #include "chrome/browser/tab_contents/navigation_controller.h"
|
| #include "chrome/browser/tab_contents/navigation_entry.h"
|
| #include "chrome/browser/tab_contents/tab_contents.h"
|
| @@ -2945,6 +2946,16 @@ void Browser::ContentTypeChanged(TabContents* source) {
|
| UpdateZoomCommandsForTabState();
|
| }
|
|
|
| +void Browser::CommitMatchPreview(TabContents* source) {
|
| + int index = tabstrip_model_.GetIndexOfTabContents(source);
|
| + DCHECK_NE(-1, index);
|
| + TabContents* preview_contents =
|
| + source->match_preview()->ReleasePreviewContents();
|
| + // TabStripModel takes ownership of preview_contents.
|
| + tabstrip_model_.ReplaceTabContentsAt(
|
| + index, preview_contents, TabStripModelObserver::REPLACE_MATCH_PREVIEW);
|
| +}
|
| +
|
| ///////////////////////////////////////////////////////////////////////////////
|
| // Browser, SelectFileDialog::Listener implementation:
|
|
|
|
|