Index: chrome/browser/tab_contents/tab_contents.cc |
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc |
index 3e38fe05ce290eddea371479cfebea1cdc4e5575..f3160ccd58569cd7e297cb9e66c933ce0a1ce931 100644 |
--- a/chrome/browser/tab_contents/tab_contents.cc |
+++ b/chrome/browser/tab_contents/tab_contents.cc |
@@ -789,8 +789,10 @@ bool TabContents::NavigateToPendingEntry( |
if (!dest_render_view_host) |
return false; // Unable to create the desired render view host. |
- if (delegate_ && delegate_->ShouldEnablePreferredSizeNotifications()) |
- dest_render_view_host->EnablePreferredSizeChangedMode(); |
+ if (delegate_ && delegate_->ShouldEnablePreferredSizeNotifications()) { |
+ dest_render_view_host->EnablePreferredSizeChangedMode( |
+ kPreferredSizeWidth | kPreferredSizeHeightThisIsSlow); |
+ } |
// For security, we should never send non-DOM-UI URLs (other than about:blank) |
// to a DOM UI renderer. Double check that here. |