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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/state_store.h

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.h
diff --git a/chrome/browser/safe_browsing/incident_reporting/state_store.h b/chrome/browser/safe_browsing/incident_reporting/state_store.h
index 33db29d2f5a4d6d461ec255a8d2d262630885cb5..f9652a1da453a209a2568cdebb18cbb58fa62beb 100644
--- a/chrome/browser/safe_browsing/incident_reporting/state_store.h
+++ b/chrome/browser/safe_browsing/incident_reporting/state_store.h
@@ -7,11 +7,11 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include "base/logging.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/prefs/scoped_user_pref_update.h"
class Profile;
@@ -70,14 +70,14 @@ class StateStore {
base::DictionaryValue* GetPrefDict();
// Replaces the contents of the underlying dictionary value.
- void ReplacePrefDict(scoped_ptr<base::DictionaryValue> pref_dict);
+ void ReplacePrefDict(std::unique_ptr<base::DictionaryValue> pref_dict);
// The store corresponding to this transaction.
StateStore* store_;
// A ScopedUserPrefUpdate through which changes to the incidents_sent
// preference are made.
- scoped_ptr<DictionaryPrefUpdate> pref_update_;
+ std::unique_ptr<DictionaryPrefUpdate> pref_update_;
DISALLOW_COPY_AND_ASSIGN(Transaction);
};

Powered by Google App Engine
This is Rietveld 408576698