Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3026)

Unified Diff: chrome/renderer/render_view.cc

Issue 194064: Make extensions use ViewMsg_EnableIntrinsicWidthChangedMode. (Closed)
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index e99f96168bc1656e26b42f0a765608a5e663c529..edf28f2441e1ca418adc12647b64c2d48b6adca6 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -1983,12 +1983,7 @@ void RenderView::DidContentsSizeChange(WebWidget* webwidget,
// 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.
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698