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

Unified Diff: chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « chrome/browser/extensions/extension_web_ui.cc ('k') | chrome/browser/printing/print_dialog_cloud.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc
===================================================================
--- chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc (revision 116011)
+++ chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc (working copy)
@@ -29,8 +29,8 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/service_messages.h"
#include "content/browser/renderer_host/render_view_host.h"
-#include "content/browser/tab_contents/tab_contents.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/web_contents.h"
#include "grit/chromium_strings.h"
#include "grit/locale_settings.h"
#include "ui/base/l10n/l10n_font_util.h"
@@ -264,14 +264,14 @@
OpenURLParams params(CloudPrintURL::GetCloudPrintLearnMoreURL(),
Referrer(), NEW_FOREGROUND_TAB,
content::PAGE_TRANSITION_LINK, false);
- web_ui_->tab_contents()->OpenURL(params);
+ web_ui_->web_contents()->OpenURL(params);
}
void CloudPrintSetupFlow::OnUserClickedPrintTestPage() {
OpenURLParams params(CloudPrintURL::GetCloudPrintTestPageURL(),
Referrer(), NEW_FOREGROUND_TAB,
content::PAGE_TRANSITION_LINK, false);
- web_ui_->tab_contents()->OpenURL(params);
+ web_ui_->web_contents()->OpenURL(params);
}
///////////////////////////////////////////////////////////////////////////////
@@ -337,7 +337,7 @@
const string16& iframe_xpath,
const string16& js) {
if (web_ui_) {
- RenderViewHost* rvh = web_ui_->tab_contents()->GetRenderViewHost();
+ RenderViewHost* rvh = web_ui_->web_contents()->GetRenderViewHost();
rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js);
}
}
« no previous file with comments | « chrome/browser/extensions/extension_web_ui.cc ('k') | chrome/browser/printing/print_dialog_cloud.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698