Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4083)

Unified Diff: chrome/browser/ui/gtk/download/download_started_animation_gtk.cc

Issue 12334073: Remove WebContents methods that duplicate WebContentsView methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/download/download_started_animation_gtk.cc
diff --git a/chrome/browser/ui/gtk/download/download_started_animation_gtk.cc b/chrome/browser/ui/gtk/download/download_started_animation_gtk.cc
index caca11b4572024d712fc3702fe9be977aa26988c..8358a241e8558fb612c91b494180bb9f4e801203 100644
--- a/chrome/browser/ui/gtk/download/download_started_animation_gtk.cc
+++ b/chrome/browser/ui/gtk/download/download_started_animation_gtk.cc
@@ -15,6 +15,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"
@@ -101,7 +102,7 @@ DownloadStartedAnimationGtk::DownloadStartedAnimationGtk(
// 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() < height_)
return;

Powered by Google App Engine
This is Rietveld 408576698