| Index: chrome/browser/instant/instant_controller.cc
|
| diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
|
| index 09aee030bad29ff4805634404b125bbe49b62af4..c630f0e3e14f88e91c247af898b54071503602db 100644
|
| --- a/chrome/browser/instant/instant_controller.cc
|
| +++ b/chrome/browser/instant/instant_controller.cc
|
| @@ -526,6 +526,16 @@ void InstantController::SetInstantEnabled(bool instant_enabled) {
|
| DeleteLoader();
|
| }
|
|
|
| +void InstantController::ThemeChanged(const ThemeBackgroundInfo& theme_info) {
|
| + if (GetPreviewContents())
|
| + loader_->SendThemeBackgroundInfo(theme_info);
|
| +}
|
| +
|
| +void InstantController::ThemeAreaHeightChanged(int height) {
|
| + if (GetPreviewContents())
|
| + loader_->SendThemeAreaHeight(height);
|
| +}
|
| +
|
| void InstantController::SetSuggestions(
|
| InstantLoader* loader,
|
| const std::vector<InstantSuggestion>& suggestions) {
|
| @@ -645,7 +655,8 @@ bool InstantController::ResetLoader(const TemplateURL* template_url,
|
| loader_.reset(new InstantLoader(this, instant_url, active_tab));
|
| loader_->Init();
|
|
|
| - // Ensure the searchbox API has the correct context.
|
| + // Ensure the searchbox API has the correct theme-related info and context.
|
| + browser_->UpdateThemeInfoForPreview();
|
| if (extended_enabled_)
|
| loader_->OnActiveTabModeChanged(search_mode_.is_ntp());
|
|
|
|
|