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

Unified Diff: chrome/browser/gpu_pixel_browsertest.cc

Issue 9015022: Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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/gpu_pixel_browsertest.cc
===================================================================
--- chrome/browser/gpu_pixel_browsertest.cc (revision 116109)
+++ chrome/browser/gpu_pixel_browsertest.cc (working copy)
@@ -17,7 +17,7 @@
#include "chrome/test/base/test_launcher_utils.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/browser/renderer_host/render_view_host.h"
-#include "content/browser/tab_contents/tab_contents.h"
+#include "content/public/browser/web_contents.h"
#include "googleurl/src/gurl.h"
#include "net/base/net_util.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -70,7 +70,7 @@
// Resizes the browser window so that the tab's contents are at a given size.
void ResizeTabContainer(Browser* browser, const gfx::Size& desired_size) {
gfx::Rect container_rect;
- browser->GetSelectedTabContents()->GetContainerBounds(&container_rect);
+ browser->GetSelectedWebContents()->GetContainerBounds(&container_rect);
// Size cannot be negative, so use a point.
gfx::Point correction(desired_size.width() - container_rect.size().width(),
desired_size.height() - container_rect.size().height());
@@ -325,7 +325,7 @@
gfx::Rect root_bounds = browser()->window()->GetBounds();
gfx::Rect tab_contents_bounds;
- browser()->GetSelectedTabContents()->GetContainerBounds(&tab_contents_bounds);
+ browser()->GetSelectedWebContents()->GetContainerBounds(&tab_contents_bounds);
gfx::Rect snapshot_bounds(tab_contents_bounds.x() - root_bounds.x(),
tab_contents_bounds.y() - root_bounds.y(),
« no previous file with comments | « chrome/browser/geolocation/geolocation_browsertest.cc ('k') | chrome/browser/instant/instant_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698