| Index: chrome/browser/ui/cocoa/download/download_started_animation_mac.mm
|
| diff --git a/chrome/browser/ui/cocoa/download/download_started_animation_mac.mm b/chrome/browser/ui/cocoa/download/download_started_animation_mac.mm
|
| index 901a755942b2bca5a22766b974957007b62b09c5..ef203ae0be82e759a7dadbbd0cc8e76b4984fc49 100644
|
| --- a/chrome/browser/ui/cocoa/download/download_started_animation_mac.mm
|
| +++ b/chrome/browser/ui/cocoa/download/download_started_animation_mac.mm
|
| @@ -19,6 +19,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"
|
| #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
|
| #include "third_party/skia/include/utils/mac/SkCGUtils.h"
|
| @@ -105,7 +106,7 @@ class DownloadAnimationWebObserver : public content::NotificationObserver {
|
| // the bottom of the tab, assuming there is enough room. If there isn't
|
| // enough, don't show the animation and let the shelf speak for itself.
|
| gfx::Rect bounds;
|
| - webContents->GetContainerBounds(&bounds);
|
| + webContents->GetView()->GetContainerBounds(&bounds);
|
| imageWidth_ = [image size].width;
|
| CGFloat imageHeight = [image size].height;
|
|
|
| @@ -115,7 +116,7 @@ class DownloadAnimationWebObserver : public content::NotificationObserver {
|
| return nil;
|
| }
|
|
|
| - NSView* tabContentsView = webContents->GetNativeView();
|
| + NSView* tabContentsView = webContents->GetView()->GetNativeView();
|
| NSWindow* parentWindow = [tabContentsView window];
|
| if (!parentWindow) {
|
| // The tab is no longer frontmost.
|
|
|