| Index: chrome/browser/instant/instant_controller.cc
|
| diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
|
| index 869c0293123248bbdc986880c17051b1d6508f90..442eab662dfb347a880d4481e436e72103d16541 100644
|
| --- a/chrome/browser/instant/instant_controller.cc
|
| +++ b/chrome/browser/instant/instant_controller.cc
|
| @@ -507,6 +507,16 @@ void InstantController::CommitInstantLoader(InstantLoader* loader) {
|
| CommitCurrentPreview(INSTANT_COMMIT_FOCUS_LOST);
|
| }
|
|
|
| +void InstantController::SetInstantPreviewHeight(InstantLoader* loader,
|
| + int height,
|
| + InstantSizeUnits units) {
|
| + DCHECK_EQ(loader_.get(), loader);
|
| + if (loader_ != loader || mode_ != EXTENDED)
|
| + return;
|
| +
|
| + delegate_->SetInstantPreviewHeight(height, units);
|
| +}
|
| +
|
| void InstantController::InstantLoaderPreviewLoaded(InstantLoader* loader) {
|
| DCHECK_EQ(loader_.get(), loader);
|
| AddPreviewUsageForHistogram(mode_, PREVIEW_LOADED);
|
|
|