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

Unified Diff: mojo/data_pipe_utils/data_pipe_file_utils.cc

Issue 2069663002: Some scoped_ptr -> std::unique_ptr conversion, especially under //mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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 | « mojo/dart/embedder/builtin_natives.cc ('k') | mojo/gles2/command_buffer_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/data_pipe_utils/data_pipe_file_utils.cc
diff --git a/mojo/data_pipe_utils/data_pipe_file_utils.cc b/mojo/data_pipe_utils/data_pipe_file_utils.cc
index 91f88c9e441d00eacbbb8c805c8f5c78f428309f..d7de1ec085f7b7d0621b47ccab8e81f29125f14f 100644
--- a/mojo/data_pipe_utils/data_pipe_file_utils.cc
+++ b/mojo/data_pipe_utils/data_pipe_file_utils.cc
@@ -7,6 +7,7 @@
#include <stdio.h>
#include <limits>
+#include <memory>
#include "base/files/file.h"
#include "base/files/file_path.h"
@@ -41,7 +42,7 @@ class CopyToFileHandler {
base::TaskRunner* file_task_runner_;
base::Callback<void(bool)> callback_;
base::File file_;
- scoped_ptr<AsyncWaiter> waiter_;
+ std::unique_ptr<AsyncWaiter> waiter_;
const void* buffer_;
uint32_t buffer_size_;
scoped_refptr<base::SingleThreadTaskRunner> main_runner_;
@@ -178,7 +179,7 @@ class CopyFromFileHandler {
base::TaskRunner* file_task_runner_;
base::Callback<void(bool)> callback_;
base::File file_;
- scoped_ptr<AsyncWaiter> waiter_;
+ std::unique_ptr<AsyncWaiter> waiter_;
void* buffer_;
uint32_t buffer_size_;
scoped_refptr<base::SingleThreadTaskRunner> main_runner_;
« no previous file with comments | « mojo/dart/embedder/builtin_natives.cc ('k') | mojo/gles2/command_buffer_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698