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

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileWriterBase.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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
Index: third_party/WebKit/Source/modules/filesystem/FileWriterBase.h
diff --git a/third_party/WebKit/Source/modules/filesystem/FileWriterBase.h b/third_party/WebKit/Source/modules/filesystem/FileWriterBase.h
index 89d97d98121bc0ea996a5dda9d1c8f5923a9c6cf..dcace75a019511a5283ee51e8b38857643dbddfc 100644
--- a/third_party/WebKit/Source/modules/filesystem/FileWriterBase.h
+++ b/third_party/WebKit/Source/modules/filesystem/FileWriterBase.h
@@ -32,8 +32,7 @@
#define FileWriterBase_h
#include "platform/heap/Handle.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
+#include <memory>
namespace blink {
@@ -42,7 +41,7 @@ class WebFileWriter;
class FileWriterBase : public GarbageCollectedMixin {
public:
virtual ~FileWriterBase();
- void initialize(PassOwnPtr<WebFileWriter>, long long length);
+ void initialize(std::unique_ptr<WebFileWriter>, long long length);
long long position() const
{
@@ -76,7 +75,7 @@ protected:
void seekInternal(long long position);
private:
- OwnPtr<WebFileWriter> m_writer;
+ std::unique_ptr<WebFileWriter> m_writer;
long long m_position;
long long m_length;
};

Powered by Google App Engine
This is Rietveld 408576698