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

Unified Diff: chrome/browser/chromeos/extensions/media_player_event_router.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/chromeos/extensions/media_player_event_router.cc
diff --git a/chrome/browser/chromeos/extensions/media_player_event_router.cc b/chrome/browser/chromeos/extensions/media_player_event_router.cc
index 99948573971a9c136a8b425f573f292ecc0ea856..05d2dc4929b9e9002a7033b8c3ba62e200ca2496 100644
--- a/chrome/browser/chromeos/extensions/media_player_event_router.cc
+++ b/chrome/browser/chromeos/extensions/media_player_event_router.cc
@@ -19,8 +19,8 @@ void BroadcastEvent(content::BrowserContext* context,
events::HistogramValue histogram_value,
const std::string& event_name) {
if (context && EventRouter::Get(context)) {
- scoped_ptr<base::ListValue> args(new base::ListValue());
- scoped_ptr<Event> event(
+ std::unique_ptr<base::ListValue> args(new base::ListValue());
+ std::unique_ptr<Event> event(
new Event(histogram_value, event_name, std::move(args)));
EventRouter::Get(context)->BroadcastEvent(std::move(event));
}

Powered by Google App Engine
This is Rietveld 408576698