diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 21:39:09 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 21:39:09 +0000 |
commit | f87eee05774ed53d75dfd1bb1d40bde455d97baa (patch) | |
tree | 630ac2027a66b2fa77ef1cfdbc82fc3a6d0949cd /chrome | |
parent | a70d677a665e43a132bc16a3c24ef2bbb5ba67fa (diff) | |
download | chromium_src-f87eee05774ed53d75dfd1bb1d40bde455d97baa.zip chromium_src-f87eee05774ed53d75dfd1bb1d40bde455d97baa.tar.gz chromium_src-f87eee05774ed53d75dfd1bb1d40bde455d97baa.tar.bz2 |
Make extensions use ViewMsg_EnableIntrinsicWidthChangedMode.
BUG=11974
TEST=no
Review URL: http://codereview.chromium.org/194064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25928 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/extensions/extension_host.cc | 3 | ||||
-rw-r--r-- | chrome/renderer/render_view.cc | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc index 39de133..c483070 100644 --- a/chrome/browser/extensions/extension_host.cc +++ b/chrome/browser/extensions/extension_host.cc @@ -345,6 +345,9 @@ void ExtensionHost::RenderViewCreated(RenderViewHost* render_view_host) { // See http://code.google.com/p/chromium/issues/detail?id=18240 extension_function_dispatcher_.reset( new ExtensionFunctionDispatcher(render_view_host, this, url_)); + + render_view_host->Send(new ViewMsg_EnableIntrinsicWidthChangedMode( + render_view_host->routing_id())); } int ExtensionHost::GetBrowserWindowID() const { diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index 31739d3..6847563 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -2136,12 +2136,7 @@ void RenderView::didChangeContentsSize(WebFrame* frame, const WebSize& size) { // We don't always want to send the change messages over IPC, only if we've // be put in that mode by getting a |ViewMsg_EnableIntrinsicWidthChangedMode| // message. - // TODO(rafaelw): Figure out where the best place to set this for extensions - // is. It isn't clean to test for ExtensionView by examining the - // enabled_bindings. This needs to be generalized as it becomes clear what - // extension toolbars need. - if (BindingsPolicy::is_extension_enabled(enabled_bindings_) || - send_preferred_width_changes_) { + if (send_preferred_width_changes_) { // WebCore likes to tell us things have changed even when they haven't, so // cache the width and only send the IPC message when we're sure the // width is different. |