summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/first_run_bubble.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/first_run_bubble.cc')
-rw-r--r--chrome/browser/ui/views/first_run_bubble.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/ui/views/first_run_bubble.cc b/chrome/browser/ui/views/first_run_bubble.cc
index c4d1e66..eccead3 100644
--- a/chrome/browser/ui/views/first_run_bubble.cc
+++ b/chrome/browser/ui/views/first_run_bubble.cc
@@ -524,10 +524,9 @@ void FirstRunBubble::EnableParent() {
// window from rendering inactive.
// TODO(beng): this only works in custom-frame mode, not glass-frame mode.
HWND bubble_owner = GetLogicalBubbleOwner(GetNativeView());
- views::NativeWidget* parent =
- views::NativeWidget::GetNativeWidgetForNativeView(bubble_owner);
+ views::Widget* parent = views::Widget::GetWidgetForNativeView(bubble_owner);
if (parent)
- parent->GetWidget()->DisableInactiveRendering();
+ parent->DisableInactiveRendering();
// Reactivate the FirstRunBubble so it responds to OnActivate messages.
SetWindowPos(GetParent(), 0, 0, 0, 0,
SWP_NOSIZE | SWP_NOMOVE | SWP_NOREDRAW | SWP_SHOWWINDOW);