summaryrefslogtreecommitdiffstats
path: root/views/controls/tabbed_pane
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-19 19:06:33 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-19 19:06:33 +0000
commita62d09f5aa351a2d395a1ba74c53ae29bee712e8 (patch)
tree6b3a17895aa054067e559fb370e97aed2479ccca /views/controls/tabbed_pane
parent24f49bd3da572b7c94a5b66b60e49a0685a9912c (diff)
downloadchromium_src-a62d09f5aa351a2d395a1ba74c53ae29bee712e8.zip
chromium_src-a62d09f5aa351a2d395a1ba74c53ae29bee712e8.tar.gz
chromium_src-a62d09f5aa351a2d395a1ba74c53ae29bee712e8.tar.bz2
Centralizes checking for non-null return from CreateWindow.
BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/6880034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82137 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/tabbed_pane')
-rw-r--r--views/controls/tabbed_pane/native_tabbed_pane_win.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/views/controls/tabbed_pane/native_tabbed_pane_win.cc b/views/controls/tabbed_pane/native_tabbed_pane_win.cc
index 1b488528..91e053f 100644
--- a/views/controls/tabbed_pane/native_tabbed_pane_win.cc
+++ b/views/controls/tabbed_pane/native_tabbed_pane_win.cc
@@ -10,6 +10,7 @@
#include "base/stl_util-inl.h"
#include "ui/base/l10n/l10n_util_win.h"
#include "ui/base/resource/resource_bundle.h"
+#include "ui/base/win/hwnd_util.h"
#include "ui/gfx/canvas_skia.h"
#include "ui/gfx/font.h"
#include "ui/gfx/native_theme_win.h"
@@ -283,6 +284,7 @@ void NativeTabbedPaneWin::CreateNativeControl() {
0, 0, width(), height(),
GetWidget()->GetNativeView(), NULL, NULL,
NULL);
+ ui::CheckWindowCreated(tab_control);
HFONT font = ResourceBundle::GetSharedInstance().
GetFont(ResourceBundle::BaseFont).GetNativeFont();