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

Unified Diff: chrome/browser/extensions/api/dial/dial_api.cc

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
« no previous file with comments | « chrome/browser/extensions/api/dial/dial_api.h ('k') | chrome/browser/extensions/api/dial/dial_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/dial/dial_api.cc
diff --git a/chrome/browser/extensions/api/dial/dial_api.cc b/chrome/browser/extensions/api/dial/dial_api.cc
index 7e48a955567c15c5d8b11a0eefb6e605437b3e81..ed8ad5d1fa62ef2cc54873201ecb0fcbd0dc95c1 100644
--- a/chrome/browser/extensions/api/dial/dial_api.cc
+++ b/chrome/browser/extensions/api/dial/dial_api.cc
@@ -104,10 +104,11 @@ void DialAPI::SendEventOnUIThread(const DialRegistry::DeviceList& devices) {
device.FillDialDevice(&api_device);
args.push_back(std::move(api_device));
}
- scoped_ptr<base::ListValue> results = api::dial::OnDeviceList::Create(args);
- scoped_ptr<Event> event(new Event(events::DIAL_ON_DEVICE_LIST,
- dial::OnDeviceList::kEventName,
- std::move(results)));
+ std::unique_ptr<base::ListValue> results =
+ api::dial::OnDeviceList::Create(args);
+ std::unique_ptr<Event> event(new Event(events::DIAL_ON_DEVICE_LIST,
+ dial::OnDeviceList::kEventName,
+ std::move(results)));
EventRouter::Get(profile_)->BroadcastEvent(std::move(event));
}
@@ -136,8 +137,9 @@ void DialAPI::SendErrorOnUIThread(const DialRegistry::DialErrorCode code) {
break;
}
- scoped_ptr<base::ListValue> results = api::dial::OnError::Create(dial_error);
- scoped_ptr<Event> event(new Event(
+ std::unique_ptr<base::ListValue> results =
+ api::dial::OnError::Create(dial_error);
+ std::unique_ptr<Event> event(new Event(
events::DIAL_ON_ERROR, dial::OnError::kEventName, std::move(results)));
EventRouter::Get(profile_)->BroadcastEvent(std::move(event));
}
« no previous file with comments | « chrome/browser/extensions/api/dial/dial_api.h ('k') | chrome/browser/extensions/api/dial/dial_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698