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

Side by Side Diff: printing/printing_context_no_system_dialog.cc

Issue 1863223002: Convert //printing to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « printing/printing_context_mac.mm ('k') | printing/printing_context_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "printing/printing_context_no_system_dialog.h" 5 #include "printing/printing_context_no_system_dialog.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <unicode/ulocdata.h> 8 #include <unicode/ulocdata.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/ptr_util.h"
11 #include "base/values.h" 12 #include "base/values.h"
12 #include "printing/metafile.h" 13 #include "printing/metafile.h"
13 #include "printing/print_job_constants.h" 14 #include "printing/print_job_constants.h"
14 #include "printing/units.h" 15 #include "printing/units.h"
15 16
16 namespace printing { 17 namespace printing {
17 18
18 // static 19 // static
19 scoped_ptr<PrintingContext> PrintingContext::Create(Delegate* delegate) { 20 std::unique_ptr<PrintingContext> PrintingContext::Create(Delegate* delegate) {
20 return make_scoped_ptr<PrintingContext>( 21 return base::WrapUnique(new PrintingContextNoSystemDialog(delegate));
21 new PrintingContextNoSystemDialog(delegate));
22 } 22 }
23 23
24 PrintingContextNoSystemDialog::PrintingContextNoSystemDialog(Delegate* delegate) 24 PrintingContextNoSystemDialog::PrintingContextNoSystemDialog(Delegate* delegate)
25 : PrintingContext(delegate) { 25 : PrintingContext(delegate) {
26 } 26 }
27 27
28 PrintingContextNoSystemDialog::~PrintingContextNoSystemDialog() { 28 PrintingContextNoSystemDialog::~PrintingContextNoSystemDialog() {
29 ReleaseContext(); 29 ReleaseContext();
30 } 30 }
31 31
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Intentional No-op. 143 // Intentional No-op.
144 } 144 }
145 145
146 gfx::NativeDrawingContext PrintingContextNoSystemDialog::context() const { 146 gfx::NativeDrawingContext PrintingContextNoSystemDialog::context() const {
147 // Intentional No-op. 147 // Intentional No-op.
148 return NULL; 148 return NULL;
149 } 149 }
150 150
151 } // namespace printing 151 } // namespace printing
152 152
OLDNEW
« no previous file with comments | « printing/printing_context_mac.mm ('k') | printing/printing_context_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698