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

Unified Diff: chrome/browser/extensions/activity_log/activity_log.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_log.h
diff --git a/chrome/browser/extensions/activity_log/activity_log.h b/chrome/browser/extensions/activity_log/activity_log.h
index dab84d1bef53f1bd3dd7d04f8d71ad58206a0cf3..567cda8e3223f0bf933354d8288fa0f4dbdc1e58 100644
--- a/chrome/browser/extensions/activity_log/activity_log.h
+++ b/chrome/browser/extensions/activity_log/activity_log.h
@@ -84,8 +84,8 @@ class ActivityLog : public BrowserContextKeyedAPI,
const std::string& page_url,
const std::string& arg_url,
const int days_ago,
- 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);
// ExtensionRegistryObserver.
// We keep track of whether the whitelisted extension is installed; if it is,
@@ -100,12 +100,14 @@ class ActivityLog : public BrowserContextKeyedAPI,
extensions::UninstallReason reason) override;
// ApiActivityMonitor.
- void OnApiEventDispatched(const std::string& extension_id,
- const std::string& event_name,
- scoped_ptr<base::ListValue> event_args) override;
- void OnApiFunctionCalled(const std::string& extension_id,
- const std::string& api_name,
- scoped_ptr<base::ListValue> event_args) override;
+ void OnApiEventDispatched(
+ const std::string& extension_id,
+ const std::string& event_name,
+ std::unique_ptr<base::ListValue> event_args) override;
+ void OnApiFunctionCalled(
+ const std::string& extension_id,
+ const std::string& api_name,
+ std::unique_ptr<base::ListValue> event_args) override;
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);

Powered by Google App Engine
This is Rietveld 408576698