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

Unified Diff: components/filesystem/directory_impl.h

Issue 1918083002: Convert //components/[f-n]* from scoped_ptr to 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 | « components/feedback/tracing_manager.cc ('k') | components/filesystem/directory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/filesystem/directory_impl.h
diff --git a/components/filesystem/directory_impl.h b/components/filesystem/directory_impl.h
index 03bba301a575c7fd16c83e24c45a7fb3da2d95e0..6924271c89f2bac6daf116ac97c117011ffc0274 100644
--- a/components/filesystem/directory_impl.h
+++ b/components/filesystem/directory_impl.h
@@ -7,10 +7,11 @@
#include <stdint.h>
+#include <memory>
+
#include "base/files/file_path.h"
#include "base/files/scoped_file.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/filesystem/public/interfaces/directory.mojom.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
@@ -29,7 +30,7 @@ class DirectoryImpl : public Directory {
// when this object is destroyed.
DirectoryImpl(mojo::InterfaceRequest<Directory> request,
base::FilePath directory_path,
- scoped_ptr<base::ScopedTempDir> temp_dir,
+ std::unique_ptr<base::ScopedTempDir> temp_dir,
scoped_refptr<LockTable> lock_table);
~DirectoryImpl() override;
@@ -72,7 +73,7 @@ class DirectoryImpl : public Directory {
private:
mojo::StrongBinding<Directory> binding_;
base::FilePath directory_path_;
- scoped_ptr<base::ScopedTempDir> temp_dir_;
+ std::unique_ptr<base::ScopedTempDir> temp_dir_;
scoped_refptr<LockTable> lock_table_;
DISALLOW_COPY_AND_ASSIGN(DirectoryImpl);
« no previous file with comments | « components/feedback/tracing_manager.cc ('k') | components/filesystem/directory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698