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

Unified Diff: chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
Index: chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader.h
diff --git a/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader.h b/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader.h
index 148713e790551e285e568e1e49eb2e031b165275..5e26821e2d734183cfa59b69a41773d48dac163a 100644
--- a/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader.h
+++ b/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader.h
@@ -7,9 +7,10 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "storage/browser/fileapi/file_stream_reader.h"
@@ -31,7 +32,7 @@ namespace file_system_provider {
class BufferingFileStreamReader : public storage::FileStreamReader {
public:
BufferingFileStreamReader(
- scoped_ptr<storage::FileStreamReader> file_stream_reader,
+ std::unique_ptr<storage::FileStreamReader> file_stream_reader,
int preloading_buffer_length,
int64_t max_bytes_to_read);
@@ -61,7 +62,7 @@ class BufferingFileStreamReader : public storage::FileStreamReader {
const net::CompletionCallback& callback,
int result);
- scoped_ptr<storage::FileStreamReader> file_stream_reader_;
+ std::unique_ptr<storage::FileStreamReader> file_stream_reader_;
int preloading_buffer_length_;
int64_t max_bytes_to_read_;
int64_t bytes_read_;

Powered by Google App Engine
This is Rietveld 408576698