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

Unified Diff: chrome/browser/printing/print_dialog_cloud.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 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/printing/print_dialog_cloud.cc
diff --git a/chrome/browser/printing/print_dialog_cloud.cc b/chrome/browser/printing/print_dialog_cloud.cc
index f3f7e9d41722e741a6e3cd80f87897da448ee38e..529d642c2af4c1b9d58bcbfe0a5c4d6e42cc7353 100644
--- a/chrome/browser/printing/print_dialog_cloud.cc
+++ b/chrome/browser/printing/print_dialog_cloud.cc
@@ -349,8 +349,8 @@ void CloudPrintFlowHandler::Observe(
url.path() == dialog_url.path() &&
url.scheme() == dialog_url.scheme()) {
RenderViewHost* rvh = web_ui()->GetWebContents()->GetRenderViewHost();
- if (rvh && rvh->delegate()) {
- WebPreferences webkit_prefs = rvh->delegate()->GetWebkitPrefs();
+ if (rvh && rvh->GetDelegate()) {
+ WebPreferences webkit_prefs = rvh->GetDelegate()->GetWebkitPrefs();
webkit_prefs.allow_scripts_to_close_windows = true;
rvh->UpdateWebkitPreferences(webkit_prefs);
} else {
« no previous file with comments | « chrome/browser/printing/background_printing_manager.cc ('k') | chrome/browser/printing/print_preview_tab_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698