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

Unified Diff: printing/printing_context_android.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/printing_context.cc ('k') | printing/printing_context_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_android.cc
diff --git a/printing/printing_context_android.cc b/printing/printing_context_android.cc
index 3fabef2261a575433b329c8143b8791b51e37bfd..88d76571021ea0a4dde0ad58120ddeba4f72bb55 100644
--- a/printing/printing_context_android.cc
+++ b/printing/printing_context_android.cc
@@ -12,6 +12,7 @@
#include "base/android/jni_array.h"
#include "base/android/jni_string.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
#include "jni/PrintingContext_jni.h"
@@ -63,8 +64,8 @@ void GetPageRanges(JNIEnv* env,
namespace printing {
// static
-scoped_ptr<PrintingContext> PrintingContext::Create(Delegate* delegate) {
- return make_scoped_ptr<PrintingContext>(new PrintingContextAndroid(delegate));
+std::unique_ptr<PrintingContext> PrintingContext::Create(Delegate* delegate) {
+ return base::WrapUnique(new PrintingContextAndroid(delegate));
}
// static
« no previous file with comments | « printing/printing_context.cc ('k') | printing/printing_context_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698