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

Unified Diff: chrome/browser/printing/print_dialog_cloud_uitest.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/printing/print_dialog_cloud_uitest.cc
===================================================================
--- chrome/browser/printing/print_dialog_cloud_uitest.cc (revision 116109)
+++ chrome/browser/printing/print_dialog_cloud_uitest.cc (working copy)
@@ -23,9 +23,9 @@
#include "chrome/test/base/in_process_browser_test.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/notification_service.h"
#include "content/public/browser/notification_types.h"
+#include "content/public/browser/web_contents.h"
#include "content/test/test_browser_thread.h"
#include "net/url_request/url_request_filter.h"
#include "net/url_request/url_request_test_job.h"
@@ -266,11 +266,11 @@
// This goes back one step further for the Chrome OS case, to making
// sure 'window.print()' gets to the right place.
- ASSERT_TRUE(browser()->GetSelectedTabContents());
- ASSERT_TRUE(browser()->GetSelectedTabContents()->GetRenderViewHost());
+ ASSERT_TRUE(browser()->GetSelectedWebContents());
+ ASSERT_TRUE(browser()->GetSelectedWebContents()->GetRenderViewHost());
string16 window_print = ASCIIToUTF16("window.print()");
- browser()->GetSelectedTabContents()->GetRenderViewHost()->
+ browser()->GetSelectedWebContents()->GetRenderViewHost()->
ExecuteJavascriptInWebFrame(string16(), window_print);
ui_test_utils::RunMessageLoop();
« no previous file with comments | « chrome/browser/printing/print_dialog_cloud.cc ('k') | chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698