| Index: chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
|
| diff --git a/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc b/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
|
| index 8ab26920df83189aa90d06097e24a13d2b3ad120..0a5009d539cd902520e76480d14f2969f4a658e4 100644
|
| --- a/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
|
| +++ b/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
|
| @@ -52,12 +52,11 @@ const SkColor kWindowBackgroundColor = SK_ColorWHITE;
|
| const int kWindowCornerRadius = 4;
|
|
|
| // Creates and shows the message widget for |view| with |animation_time_ms|.
|
| -void CreateAndShowWidgetWithContent(views::WidgetDelegate* delegate,
|
| - views::View* view,
|
| - int animation_time_ms) {
|
| +void CreateAndShowWidget(views::WidgetDelegateView* delegate,
|
| + int animation_time_ms) {
|
| aura::Window* root_window = ash::Shell::GetTargetRootWindow();
|
| gfx::Size rs = root_window->bounds().size();
|
| - gfx::Size ps = view->GetPreferredSize();
|
| + gfx::Size ps = delegate->GetPreferredSize();
|
| gfx::Rect bounds((rs.width() - ps.width()) / 2,
|
| -ps.height(),
|
| ps.width(),
|
| @@ -75,7 +74,6 @@ void CreateAndShowWidgetWithContent(views::WidgetDelegate* delegate,
|
| root_window, ash::kShellWindowId_SettingBubbleContainer);
|
| views::Widget* widget = new views::Widget;
|
| widget->Init(params);
|
| - widget->SetContentsView(view);
|
| gfx::NativeView native_view = widget->GetNativeView();
|
| native_view->SetName("KioskIdleAppNameNotification");
|
|
|
| @@ -267,7 +265,7 @@ void IdleAppNameNotificationView::ShowMessage(
|
| app_name,
|
| error,
|
| message_visibility_time_in_ms + animation_time_ms);
|
| - CreateAndShowWidgetWithContent(view_, view_, animation_time_ms);
|
| + CreateAndShowWidget(view_, animation_time_ms);
|
| }
|
|
|
| } // namespace chromeos
|
|
|