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

Unified Diff: chrome/browser/extensions/activity_log/activity_log.cc

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_log.cc
diff --git a/chrome/browser/extensions/activity_log/activity_log.cc b/chrome/browser/extensions/activity_log/activity_log.cc
index 0f9d04a9c6742db375c0c23b611ddfba71341d81..0a5e843193f8307187639ffab21ab78ac175881f 100644
--- a/chrome/browser/extensions/activity_log/activity_log.cc
+++ b/chrome/browser/extensions/activity_log/activity_log.cc
@@ -578,9 +578,10 @@ void ActivityLog::OnScriptsExecuted(
}
}
-void ActivityLog::OnApiEventDispatched(const std::string& extension_id,
- const std::string& event_name,
- scoped_ptr<base::ListValue> event_args) {
+void ActivityLog::OnApiEventDispatched(
+ const std::string& extension_id,
+ const std::string& event_name,
+ std::unique_ptr<base::ListValue> event_args) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
scoped_refptr<Action> action = new Action(extension_id,
base::Time::Now(),
@@ -592,7 +593,7 @@ void ActivityLog::OnApiEventDispatched(const std::string& extension_id,
void ActivityLog::OnApiFunctionCalled(const std::string& extension_id,
const std::string& api_name,
- scoped_ptr<base::ListValue> args) {
+ std::unique_ptr<base::ListValue> args) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
scoped_refptr<Action> action = new Action(extension_id,
base::Time::Now(),
@@ -611,8 +612,8 @@ void ActivityLog::GetFilteredActions(
const std::string& page_url,
const std::string& arg_url,
const int daysAgo,
- const base::Callback
- <void(scoped_ptr<std::vector<scoped_refptr<Action> > >)>& callback) {
+ const base::Callback<
+ void(std::unique_ptr<std::vector<scoped_refptr<Action>>>)>& callback) {
if (database_policy_) {
database_policy_->ReadFilteredData(
extension_id, type, api_name, page_url, arg_url, daysAgo, callback);

Powered by Google App Engine
This is Rietveld 408576698