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

Unified Diff: chrome/browser/extensions/api/mdns/mdns_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
Index: chrome/browser/extensions/api/mdns/mdns_api.cc
diff --git a/chrome/browser/extensions/api/mdns/mdns_api.cc b/chrome/browser/extensions/api/mdns/mdns_api.cc
index 50bab5fd62b4c7d135af9c3b3db4ee4b7c9edb6c..7cf70265a1f94161cbcef52cd33a98f9f21000a5 100644
--- a/chrome/browser/extensions/api/mdns/mdns_api.cc
+++ b/chrome/browser/extensions/api/mdns/mdns_api.cc
@@ -63,7 +63,7 @@ BrowserContextKeyedAPIFactory<MDnsAPI>* MDnsAPI::GetFactoryInstance() {
}
void MDnsAPI::SetDnsSdRegistryForTesting(
- scoped_ptr<DnsSdRegistry> dns_sd_registry) {
+ std::unique_ptr<DnsSdRegistry> dns_sd_registry) {
dns_sd_registry_ = std::move(dns_sd_registry);
if (dns_sd_registry_.get())
dns_sd_registry_.get()->AddObserver(this);
@@ -170,10 +170,10 @@ void MDnsAPI::OnDnsSdEvent(const std::string& service_type,
args.push_back(std::move(mdns_service));
}
- scoped_ptr<base::ListValue> results = mdns::OnServiceList::Create(args);
- scoped_ptr<Event> event(new Event(events::MDNS_ON_SERVICE_LIST,
- mdns::OnServiceList::kEventName,
- std::move(results)));
+ std::unique_ptr<base::ListValue> results = mdns::OnServiceList::Create(args);
+ std::unique_ptr<Event> event(new Event(events::MDNS_ON_SERVICE_LIST,
+ mdns::OnServiceList::kEventName,
+ std::move(results)));
event->restrict_to_browser_context = browser_context_;
event->filter_info.SetServiceType(service_type);
« no previous file with comments | « chrome/browser/extensions/api/mdns/mdns_api.h ('k') | chrome/browser/extensions/api/mdns/mdns_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698