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

Unified Diff: components/data_reduction_proxy/core/browser/data_store_impl.h

Issue 1873263002: Convert //components/data_reduction_proxy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address feedback 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: components/data_reduction_proxy/core/browser/data_store_impl.h
diff --git a/components/data_reduction_proxy/core/browser/data_store_impl.h b/components/data_reduction_proxy/core/browser/data_store_impl.h
index eb476bf0f6f9e9bd7c998c05aab879ba8ccb904c..a52afc3d85f3ceaae1ccde11fca4cc0a46671ce1 100644
--- a/components/data_reduction_proxy/core/browser/data_store_impl.h
+++ b/components/data_reduction_proxy/core/browser/data_store_impl.h
@@ -6,11 +6,11 @@
#define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_STORE_IMPL_H_
#include <map>
+#include <memory>
#include <string>
#include "base/files/file_path.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/sequence_checker.h"
#include "components/data_reduction_proxy/core/browser/data_store.h"
@@ -44,7 +44,7 @@ class DataStoreImpl : public DataStore {
void RecreateDB();
// The underlying LevelDB used by this implementation.
- scoped_ptr<leveldb::DB> db_;
+ std::unique_ptr<leveldb::DB> db_;
// Path to the profile using this store.
const base::FilePath profile_path_;

Powered by Google App Engine
This is Rietveld 408576698