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

Unified Diff: chrome/browser/printing/background_printing_manager.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
Index: chrome/browser/printing/background_printing_manager.cc
===================================================================
--- chrome/browser/printing/background_printing_manager.cc (revision 138434)
+++ chrome/browser/printing/background_printing_manager.cc (working copy)
@@ -15,8 +15,8 @@
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.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"
using content::BrowserThread;
using content::WebContents;
@@ -80,7 +80,8 @@
tab_controller->GetInitiatorTab(preview_tab);
if (!initiator_tab)
return;
- initiator_tab->web_contents()->GetRenderViewHost()->GetDelegate()->Activate();
+ WebContents* web_contents = initiator_tab->web_contents();
+ web_contents->GetDelegate()->ActivateContents(web_contents);
}
void BackgroundPrintingManager::Observe(
« no previous file with comments | « chrome/browser/media/media_stream_capture_indicator.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