| Index: chrome/browser/ui/views/download/download_started_animation_views.cc
|
| diff --git a/chrome/browser/ui/views/download/download_started_animation_views.cc b/chrome/browser/ui/views/download/download_started_animation_views.cc
|
| index 8280ba29b164cabcec763f09b4cfc117469aefb0..5b67f384ceac81ef357a14519fee217e7a21cd42 100644
|
| --- a/chrome/browser/ui/views/download/download_started_animation_views.cc
|
| +++ b/chrome/browser/ui/views/download/download_started_animation_views.cc
|
| @@ -10,6 +10,7 @@
|
| #include "content/public/browser/notification_source.h"
|
| #include "content/public/browser/notification_types.h"
|
| #include "content/public/browser/web_contents.h"
|
| +#include "content/public/browser/web_contents_view.h"
|
| #include "grit/theme_resources.h"
|
| #include "ui/base/animation/linear_animation.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| @@ -90,7 +91,7 @@ DownloadStartedAnimationWin::DownloadStartedAnimationWin(
|
|
|
| // If we're too small to show the download image, then don't bother -
|
| // the shelf will be enough.
|
| - web_contents_->GetContainerBounds(&web_contents_bounds_);
|
| + web_contents_->GetView()->GetContainerBounds(&web_contents_bounds_);
|
| if (web_contents_bounds_.height() < kDownloadImage->height())
|
| return;
|
|
|
| @@ -110,7 +111,7 @@ DownloadStartedAnimationWin::DownloadStartedAnimationWin(
|
| views::Widget::InitParams params(views::Widget::InitParams::TYPE_POPUP);
|
| params.transparent = true;
|
| params.accept_events = false;
|
| - params.parent = web_contents_->GetNativeView();
|
| + params.parent = web_contents_->GetView()->GetNativeView();
|
| popup_->Init(params);
|
| popup_->SetOpacity(0x00);
|
| popup_->SetContentsView(this);
|
|
|