Index: chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc |
diff --git a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc |
index 6e4d68b9925ac56f916c2dfe1990cec372a75ce2..6b1e2f0b509a64f7081bb6144eccff5dcde00708 100644 |
--- a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc |
+++ b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc |
@@ -8,6 +8,7 @@ |
#include "chrome/browser/ui/intents/web_intent_picker.h" |
#include "chrome/common/extensions/extension_messages.h" |
#include "content/public/browser/navigation_controller.h" |
+#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/common/renderer_preferences.h" |
#include "ipc/ipc_message_macros.h" |
@@ -73,6 +74,13 @@ bool WebIntentInlineDispositionDelegate::OnMessageReceived( |
IPC_END_MESSAGE_MAP() |
return handled; |
} |
+void WebIntentInlineDispositionDelegate::RenderViewCreated( |
+ content::RenderViewHost* render_view_host) { |
+ DCHECK(render_view_host); |
+ render_view_host->EnableAutoResize( |
+ WebIntentPicker::GetMinInlineDispositionSize(), |
+ WebIntentPicker::GetMaxInlineDispositionSize()); |
+} |
content::WebContents* WebIntentInlineDispositionDelegate:: |
GetAssociatedWebContents() const { |
@@ -89,3 +97,8 @@ void WebIntentInlineDispositionDelegate::OnRequest( |
extension_function_dispatcher_.Dispatch(params, |
web_contents_->GetRenderViewHost()); |
} |
+void WebIntentInlineDispositionDelegate::ResizeDueToAutoResize( |
+ content::WebContents* source, const gfx::Size& pref_size) { |
+ DCHECK(picker_); |
+ picker_->OnInlineDispositionAutoResize(pref_size); |
+} |