summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 19:29:29 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 19:29:29 +0000
commit251b16cffbfca46fd038b13c702d9309d0948eb0 (patch)
treedff1c99d1751623d693f3baa25e23ec35786934f /chrome
parent2c8ef3436c78e91286f378bc8b50a3e6b0a86de7 (diff)
downloadchromium_src-251b16cffbfca46fd038b13c702d9309d0948eb0.zip
chromium_src-251b16cffbfca46fd038b13c702d9309d0948eb0.tar.gz
chromium_src-251b16cffbfca46fd038b13c702d9309d0948eb0.tar.bz2
Remove some code I accidentally left in which is causing asserts and crashes.
close_on_deactivate_ was getting set to true which was deleting the object, causing us to crash later. The code that originally set this externally is still there, so this restores the old behavior. TEST=Press tab on any page, it shouldn't assert or crash. Review URL: http://codereview.chromium.org/7631 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3549 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/render_widget_host_view_win.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/chrome/browser/render_widget_host_view_win.cc b/chrome/browser/render_widget_host_view_win.cc
index 32d6d55..3788795 100644
--- a/chrome/browser/render_widget_host_view_win.cc
+++ b/chrome/browser/render_widget_host_view_win.cc
@@ -77,12 +77,6 @@ RenderWidgetHostViewWin::RenderWidgetHostViewWin(
parent_hwnd_(NULL),
is_loading_(false) {
render_widget_host_->set_view(this);
-
- // We set the parent HWND explicitly as pop-up HWNDs are parented and owned by
- // the first non-child HWND of the HWND that was specified to the CreateWindow
- // call.
- set_parent_hwnd(GetPluginHWND());
- set_close_on_deactivate(true);
}
RenderWidgetHostViewWin::~RenderWidgetHostViewWin() {