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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/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: 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/state_store.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/state_store.cc b/chrome/browser/safe_browsing/incident_reporting/state_store.cc
index 856daef8521cdf45d244a759f4007643439ce74e..52f1c15c919adf6d982fcadb6d14fbc5f397ccb7 100644
--- a/chrome/browser/safe_browsing/incident_reporting/state_store.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/state_store.cc
@@ -104,7 +104,7 @@ base::DictionaryValue* StateStore::Transaction::GetPrefDict() {
}
void StateStore::Transaction::ReplacePrefDict(
- scoped_ptr<base::DictionaryValue> pref_dict) {
+ std::unique_ptr<base::DictionaryValue> pref_dict) {
GetPrefDict()->Swap(pref_dict.get());
}
@@ -127,7 +127,7 @@ StateStore::StateStore(Profile* profile)
// Apply the platform data.
Transaction transaction(this);
- scoped_ptr<base::DictionaryValue> value_dict(
+ std::unique_ptr<base::DictionaryValue> value_dict(
platform_state_store::Load(profile_));
InitializationResult state_store_init_result = PSS_MATCHES;

Powered by Google App Engine
This is Rietveld 408576698