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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/platform_state_store.cc

Issue 1870003002: Convert //chrome/browser/safe_browsing from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address comments 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/safe_browsing/incident_reporting/platform_state_store.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/platform_state_store.cc b/chrome/browser/safe_browsing/incident_reporting/platform_state_store.cc
index 59aeda4649b310adc53b8d2093dc4a07392ce3d0..54319ea4b082c73e0de8c8face57ee1007a68721 100644
--- a/chrome/browser/safe_browsing/incident_reporting/platform_state_store.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/platform_state_store.cc
@@ -127,9 +127,10 @@ void RestoreFromProtobuf(
#endif // USE_PLATFORM_STATE_STORE
-scoped_ptr<base::DictionaryValue> Load(Profile* profile) {
+std::unique_ptr<base::DictionaryValue> Load(Profile* profile) {
#if defined(USE_PLATFORM_STATE_STORE)
- scoped_ptr<base::DictionaryValue> value_dict(new base::DictionaryValue());
+ std::unique_ptr<base::DictionaryValue> value_dict(
+ new base::DictionaryValue());
std::string data;
PlatformStateStoreLoadResult result = ReadStoreData(profile, &data);
if (result == PlatformStateStoreLoadResult::SUCCESS)

Powered by Google App Engine
This is Rietveld 408576698