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

Unified Diff: components/leveldb/leveldb_mojo_proxy.cc

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/leveldb/leveldb_mojo_proxy.h ('k') | components/leveldb/leveldb_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/leveldb/leveldb_mojo_proxy.cc
diff --git a/components/leveldb/leveldb_mojo_proxy.cc b/components/leveldb/leveldb_mojo_proxy.cc
index 2d365f1e51680ecd182a9dd7ff6c1abc48988d5a..e20c87f5318246b52031e525c4e43cadde855d18 100644
--- a/components/leveldb/leveldb_mojo_proxy.cc
+++ b/components/leveldb/leveldb_mojo_proxy.cc
@@ -127,7 +127,7 @@ LevelDBMojoProxy::LockFile(OpaqueDir* dir, const std::string& path) {
filesystem::FileError LevelDBMojoProxy::UnlockFile(OpaqueLock* lock) {
// Take ownership of the incoming lock so it gets destroyed whatever happens.
- scoped_ptr<OpaqueLock> scoped_lock(lock);
+ std::unique_ptr<OpaqueLock> scoped_lock(lock);
filesystem::FileError error = filesystem::FileError::FAILED;
RunInternal(base::Bind(&LevelDBMojoProxy::UnlockFileImpl, this,
base::Passed(&scoped_lock), &error));
@@ -316,7 +316,7 @@ void LevelDBMojoProxy::LockFileImpl(OpaqueDir* dir,
}
}
-void LevelDBMojoProxy::UnlockFileImpl(scoped_ptr<OpaqueLock> lock,
+void LevelDBMojoProxy::UnlockFileImpl(std::unique_ptr<OpaqueLock> lock,
filesystem::FileError* out_error) {
lock->lock_file->Unlock(out_error);
}
« no previous file with comments | « components/leveldb/leveldb_mojo_proxy.h ('k') | components/leveldb/leveldb_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698