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

Unified Diff: extensions/browser/api/display_source/display_source_event_router.cc

Issue 1902873002: Convert //extensions/browser/api 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
Index: extensions/browser/api/display_source/display_source_event_router.cc
diff --git a/extensions/browser/api/display_source/display_source_event_router.cc b/extensions/browser/api/display_source/display_source_event_router.cc
index d621e94cd371fb62ac219e85ae62886acbd0c401..202d7f99185c4955cfc3f48c406d9b34caa4f9e0 100644
--- a/extensions/browser/api/display_source/display_source_event_router.cc
+++ b/extensions/browser/api/display_source/display_source_event_router.cc
@@ -86,9 +86,9 @@ void DisplaySourceEventRouter::OnSinksUpdated(
EventRouter* event_router = EventRouter::Get(browser_context_);
if (!event_router)
return;
- scoped_ptr<base::ListValue> args(
+ std::unique_ptr<base::ListValue> args(
api::display_source::OnSinksUpdated::Create(sinks));
- scoped_ptr<Event> sinks_updated_event(new Event(
+ std::unique_ptr<Event> sinks_updated_event(new Event(
events::DISPLAY_SOURCE_ON_SINKS_UPDATED,
api::display_source::OnSinksUpdated::kEventName, std::move(args)));
event_router->BroadcastEvent(std::move(sinks_updated_event));

Powered by Google App Engine
This is Rietveld 408576698