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

Unified Diff: chrome/browser/ui/cocoa/applescript/tab_applescript.mm

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 | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/tab_contents/tab_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/applescript/tab_applescript.mm
diff --git a/chrome/browser/ui/cocoa/applescript/tab_applescript.mm b/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
index ee1afa612d236c49b8a89ae80342606829587950..a5ea3922beffc1e7cfdfcd36a095a52fb09d33e4 100644
--- a/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
+++ b/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
@@ -342,7 +342,8 @@ static NSAppleEventDescriptor* valueToDescriptor(Value* value) {
}
- (void)handlesPrintScriptCommand:(NSScriptCommand*)command {
- bool initiateStatus = tabContents_->print_view_manager()->PrintNow();
+ bool initiateStatus = printing::PrintViewManager::FromWebContents(
+ tabContents_->web_contents())->PrintNow();
if (initiateStatus == false) {
AppleScript::SetError(AppleScript::errInitiatePrinting);
}
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698