summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 20:48:14 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 20:48:14 +0000
commit08ed00a81afc773b7bdc8dc4bec733c1bfa2eb19 (patch)
tree63eed8973d78fa1f7492f74111bcb855d27c4d15 /chrome/browser/external_tab_container.cc
parent69621f4ca794de8523f9f6a7d0d31c063b610853 (diff)
downloadchromium_src-08ed00a81afc773b7bdc8dc4bec733c1bfa2eb19.zip
chromium_src-08ed00a81afc773b7bdc8dc4bec733c1bfa2eb19.tar.gz
chromium_src-08ed00a81afc773b7bdc8dc4bec733c1bfa2eb19.tar.bz2
Restore parent semantings for external tab container creation, and error check the HWND.
BUG=none TEST=none Review URL: http://codereview.chromium.org/115852 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17110 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container.cc')
-rw-r--r--chrome/browser/external_tab_container.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index 0af1adb..a8490ae 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -49,7 +49,11 @@ bool ExternalTabContainer::Init(Profile* profile,
}
set_window_style(WS_POPUP);
- views::WidgetWin::Init(parent, bounds, true);
+ views::WidgetWin::Init(NULL, bounds, true);
+ if (!IsWindow()) {
+ NOTREACHED();
+ return false;
+ }
// We don't ever remove the prop because the lifetime of this object
// is the same as the lifetime of the window