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

Unified Diff: printing/printing_context_no_system_dialog.cc

Issue 2117713002: Print directly to CUPS using the IPP APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ippRead
Patch Set: format and merge Created 4 years, 5 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 | « printing/printing_context_chromeos.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « printing/printing_context_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698