| Index: chrome/renderer/searchbox/searchbox.cc
|
| diff --git a/chrome/renderer/searchbox/searchbox.cc b/chrome/renderer/searchbox/searchbox.cc
|
| index 922e985bf1290c8f5f8ff78f3b72c3ae635e5aca..c098637f77fb1819aa806511c33e7aee6a1aa0e7 100644
|
| --- a/chrome/renderer/searchbox/searchbox.cc
|
| +++ b/chrome/renderer/searchbox/searchbox.cc
|
| @@ -90,6 +90,7 @@ SearchBox::SearchBox(content::RenderView* render_view)
|
| is_input_in_progress_(false),
|
| display_instant_results_(false),
|
| omnibox_font_size_(0),
|
| + app_launcher_enabled_(false),
|
| autocomplete_results_cache_(kMaxInstantAutocompleteResultItemCacheSize),
|
| most_visited_items_cache_(kMaxInstantMostVisitedItemCacheSize) {
|
| }
|
| @@ -271,6 +272,8 @@ bool SearchBox::OnMessageReceived(const IPC::Message& message) {
|
| OnThemeChanged)
|
| IPC_MESSAGE_HANDLER(ChromeViewMsg_SearchBoxFontInformation,
|
| OnFontInformationReceived)
|
| + IPC_MESSAGE_HANDLER(ChromeViewMsg_SearchBoxPromoInformation,
|
| + OnPromoInformationReceived)
|
| IPC_MESSAGE_HANDLER(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
|
| OnMostVisitedChanged)
|
| IPC_MESSAGE_HANDLER(ChromeViewMsg_SearchBoxToggleVoiceSearch,
|
| @@ -487,6 +490,10 @@ void SearchBox::OnFontInformationReceived(const string16& omnibox_font,
|
| omnibox_font_size_ = omnibox_font_size;
|
| }
|
|
|
| +void SearchBox::OnPromoInformationReceived(bool is_app_launcher_enabled) {
|
| + app_launcher_enabled_ = is_app_launcher_enabled;
|
| +}
|
| +
|
| double SearchBox::GetZoom() const {
|
| WebKit::WebView* web_view = render_view()->GetWebView();
|
| if (web_view) {
|
|
|