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

Unified Diff: extensions/browser/api_activity_monitor.h

Issue 1909773002: Convert //extensions/browser 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
« no previous file with comments | « no previous file | extensions/browser/api_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api_activity_monitor.h
diff --git a/extensions/browser/api_activity_monitor.h b/extensions/browser/api_activity_monitor.h
index b8f0cc32c401143b11a97b50aa3e6264b94005b6..9ef97a4a4effe54baa63fe0ae74e7d7e7c1cdb4e 100644
--- a/extensions/browser/api_activity_monitor.h
+++ b/extensions/browser/api_activity_monitor.h
@@ -5,9 +5,9 @@
#ifndef EXTENSIONS_BROWSER_API_ACTIVITY_MONITOR_H_
#define EXTENSIONS_BROWSER_API_ACTIVITY_MONITOR_H_
+#include <memory>
#include <string>
-#include "base/memory/scoped_ptr.h"
namespace base {
class ListValue;
@@ -21,14 +21,15 @@ namespace extensions {
class ApiActivityMonitor {
public:
// Called when an API event is dispatched to an extension.
- virtual void OnApiEventDispatched(const std::string& extension_id,
- const std::string& event_name,
- scoped_ptr<base::ListValue> event_args) = 0;
+ virtual void OnApiEventDispatched(
+ const std::string& extension_id,
+ const std::string& event_name,
+ std::unique_ptr<base::ListValue> event_args) = 0;
// Called when an extension calls an API function.
virtual void OnApiFunctionCalled(const std::string& extension_id,
const std::string& api_name,
- scoped_ptr<base::ListValue> args) = 0;
+ std::unique_ptr<base::ListValue> args) = 0;
protected:
virtual ~ApiActivityMonitor() {}
« no previous file with comments | « no previous file | extensions/browser/api_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698