Index: chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc |
diff --git a/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc b/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc |
index 8e1e13456eb354f76d9fc3af0d1ad62739fd1602..0cf76f8e9ed150cbc4d164aeba26f747e149503b 100644 |
--- a/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc |
+++ b/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc |
@@ -324,13 +324,13 @@ void TabCaptureRegistry::DispatchStatusChangeEvent( |
if (!router) |
return; |
- scoped_ptr<base::ListValue> args(new base::ListValue()); |
+ std::unique_ptr<base::ListValue> args(new base::ListValue()); |
tab_capture::CaptureInfo info; |
request->GetCaptureInfo(&info); |
args->Append(info.ToValue().release()); |
- scoped_ptr<Event> event(new Event(events::TAB_CAPTURE_ON_STATUS_CHANGED, |
- tab_capture::OnStatusChanged::kEventName, |
- std::move(args))); |
+ std::unique_ptr<Event> event( |
+ new Event(events::TAB_CAPTURE_ON_STATUS_CHANGED, |
+ tab_capture::OnStatusChanged::kEventName, std::move(args))); |
event->restrict_to_browser_context = browser_context_; |
router->DispatchEventToExtension(request->extension_id(), std::move(event)); |