Index: printing/printing_context_no_system_dialog.cc |
diff --git a/printing/printing_context_no_system_dialog.cc b/printing/printing_context_no_system_dialog.cc |
index 5f8db1a62ca6c32d5617aacdb92ee974c8d567f3..bd5e180350856f78a2980ad4198b1b8610cbe10a 100644 |
--- a/printing/printing_context_no_system_dialog.cc |
+++ b/printing/printing_context_no_system_dialog.cc |
@@ -7,6 +7,8 @@ |
#include <stdint.h> |
#include <unicode/ulocdata.h> |
+#include <memory> |
+ |
#include "base/logging.h" |
#include "base/memory/ptr_util.h" |
#include "base/values.h" |
@@ -16,10 +18,12 @@ |
namespace printing { |
+#if !defined(USE_CUPS) |
// static |
std::unique_ptr<PrintingContext> PrintingContext::Create(Delegate* delegate) { |
- return base::WrapUnique(new PrintingContextNoSystemDialog(delegate)); |
+ return base::MakeUnique<PrintingContextNoSystemDialog>(delegate); |
} |
+#endif // !defined(USE_CUPS) |
PrintingContextNoSystemDialog::PrintingContextNoSystemDialog(Delegate* delegate) |
: PrintingContext(delegate) { |
@@ -145,7 +149,7 @@ void PrintingContextNoSystemDialog::ReleaseContext() { |
gfx::NativeDrawingContext PrintingContextNoSystemDialog::context() const { |
// Intentional No-op. |
- return NULL; |
+ return nullptr; |
} |
} // namespace printing |