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

Unified Diff: chrome/browser/automation/automation_provider_win.cc

Issue 10911351: Switch PrintViewManager, PrintPreviewMessageHandler to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix typo Created 8 years, 3 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 | « no previous file | chrome/browser/printing/print_preview_message_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_provider_win.cc
diff --git a/chrome/browser/automation/automation_provider_win.cc b/chrome/browser/automation/automation_provider_win.cc
index 99bb3cb19a9ceb3dc810eb3ed94391347cf7104c..c78309429506e055438d27bf7d4029627199cdd6 100644
--- a/chrome/browser/automation/automation_provider_win.cc
+++ b/chrome/browser/automation/automation_provider_win.cc
@@ -259,8 +259,9 @@ void AutomationProvider::PrintAsync(int tab_handle) {
if (!web_contents)
return;
- TabContents* tab_contents = TabContents::FromWebContents(web_contents);
- tab_contents->print_view_manager()->PrintNow();
+ printing::PrintViewManager* print_view_manager =
+ printing::PrintViewManager::FromWebContents(web_contents);
+ print_view_manager->PrintNow();
}
ExternalTabContainer* AutomationProvider::GetExternalTabForHandle(int handle) {
« no previous file with comments | « no previous file | chrome/browser/printing/print_preview_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698