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

Unified Diff: chrome/browser/extensions/activity_log/activity_actions.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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/extensions/activity_log/activity_actions.h
diff --git a/chrome/browser/extensions/activity_log/activity_actions.h b/chrome/browser/extensions/activity_log/activity_actions.h
index b0c141a815f65b9306f0032e672e3827de1ad4d7..900b19bc8a30af658e01d58d0eb2da06ebeba328 100644
--- a/chrome/browser/extensions/activity_log/activity_actions.h
+++ b/chrome/browser/extensions/activity_log/activity_actions.h
@@ -78,7 +78,7 @@ class Action : public base::RefCountedThreadSafe<Action> {
// can be modified in place; if the list was null an empty list is created
// first.
const base::ListValue* args() const { return args_.get(); }
- void set_args(scoped_ptr<base::ListValue> args);
+ void set_args(std::unique_ptr<base::ListValue> args);
base::ListValue* mutable_args();
// The URL of the page which was modified or accessed.
@@ -102,7 +102,7 @@ class Action : public base::RefCountedThreadSafe<Action> {
// A dictionary where any additional data can be stored.
const base::DictionaryValue* other() const { return other_.get(); }
- void set_other(scoped_ptr<base::DictionaryValue> other);
+ void set_other(std::unique_ptr<base::DictionaryValue> other);
base::DictionaryValue* mutable_other();
// An ID that identifies an action stored in the Activity Log database. If the
@@ -138,13 +138,13 @@ class Action : public base::RefCountedThreadSafe<Action> {
base::Time time_;
ActionType action_type_;
std::string api_name_;
- scoped_ptr<base::ListValue> args_;
+ std::unique_ptr<base::ListValue> args_;
GURL page_url_;
std::string page_title_;
bool page_incognito_;
GURL arg_url_;
bool arg_incognito_;
- scoped_ptr<base::DictionaryValue> other_;
+ std::unique_ptr<base::DictionaryValue> other_;
int count_;
int64_t action_id_;
« no previous file with comments | « chrome/browser/extensions/active_tab_unittest.cc ('k') | chrome/browser/extensions/activity_log/activity_actions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698