| Index: printing/printing_context_mac.mm
|
| diff --git a/printing/printing_context_mac.mm b/printing/printing_context_mac.mm
|
| index fa907b579a44491da33bbac49a4ec2997dc44ba7..9bbe5ac1de9e67198c10f64284577d76dbfac223 100644
|
| --- a/printing/printing_context_mac.mm
|
| +++ b/printing/printing_context_mac.mm
|
| @@ -68,12 +68,12 @@
|
| } // namespace
|
|
|
| // static
|
| -scoped_ptr<PrintingContext> PrintingContext::Create(Delegate* delegate) {
|
| - return make_scoped_ptr<PrintingContext>(new PrintingContextMac(delegate));
|
| -}
|
| -
|
| -PrintingContextMac::PrintingContextMac(Delegate* delegate)
|
| - : PrintingContext(delegate),
|
| +PrintingContext* PrintingContext::Create(const std::string& app_locale) {
|
| + return static_cast<PrintingContext*>(new PrintingContextMac(app_locale));
|
| +}
|
| +
|
| +PrintingContextMac::PrintingContextMac(const std::string& app_locale)
|
| + : PrintingContext(app_locale),
|
| print_info_([[NSPrintInfo sharedPrintInfo] copy]),
|
| context_(NULL) {
|
| }
|
| @@ -83,6 +83,7 @@
|
| }
|
|
|
| void PrintingContextMac::AskUserForSettings(
|
| + gfx::NativeView parent_view,
|
| int max_pages,
|
| bool has_selection,
|
| const PrintSettingsCallback& callback) {
|
| @@ -114,7 +115,6 @@
|
| [panel setOptions:options];
|
|
|
| // Set the print job title text.
|
| - gfx::NativeView parent_view = delegate_->GetParentView();
|
| if (parent_view) {
|
| NSString* job_title = [[parent_view window] title];
|
| if (job_title) {
|
|
|