From f3615f0a53ed81a0146c3ff2816ac8432b779cbf Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Tue, 26 Feb 2013 06:09:06 +0000 Subject: Remove WebContents methods that duplicate WebContentsView methods. Review URL: https://codereview.chromium.org/12334073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184598 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/download/download_shelf.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/browser/download/download_shelf.cc') diff --git a/chrome/browser/download/download_shelf.cc b/chrome/browser/download/download_shelf.cc index 843a662..659bf6f 100644 --- a/chrome/browser/download/download_shelf.cc +++ b/chrome/browser/download/download_shelf.cc @@ -17,6 +17,7 @@ #include "content/public/browser/download_item.h" #include "content/public/browser/download_manager.h" #include "content/public/browser/web_contents.h" +#include "content/public/browser/web_contents_view.h" #include "ui/base/animation/animation.h" using content::DownloadItem; @@ -124,7 +125,7 @@ void DownloadShelf::ShowDownload(DownloadItem* download) { browser()->tab_strip_model()->GetActiveWebContents(); if (DownloadItemModel(download).ShouldShowDownloadStartedAnimation() && shelf_tab && - platform_util::IsVisible(shelf_tab->GetNativeView()) && + platform_util::IsVisible(shelf_tab->GetView()->GetNativeView()) && ui::Animation::ShouldRenderRichAnimation()) { DownloadStartedAnimation::Show(shelf_tab); } -- cgit v1.1