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

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

Issue 10407122: Get rid of the last RenderViewHostDelegate usage in chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « chrome/browser/printing/background_printing_manager.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_preview_tab_controller.cc
===================================================================
--- chrome/browser/printing/print_preview_tab_controller.cc (revision 138434)
+++ chrome/browser/printing/print_preview_tab_controller.cc (working copy)
@@ -36,8 +36,8 @@
#include "content/public/browser/notification_types.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
-#include "content/public/browser/render_view_host_delegate.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/browser/web_contents_delegate.h"
#include "webkit/plugins/webplugininfo.h"
using content::NativeWebKeyboardEvent;
@@ -229,7 +229,8 @@
return CreatePrintPreviewTab(initiator_tab);
// Show the initiator tab holding the existing preview tab.
- initiator_tab->web_contents()->GetRenderViewHost()->GetDelegate()->Activate();
+ WebContents* web_contents = initiator_tab->web_contents();
+ web_contents->GetDelegate()->ActivateContents(web_contents);
return preview_tab;
}
« no previous file with comments | « chrome/browser/printing/background_printing_manager.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698