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

Unified Diff: components/devtools_discovery/devtools_discovery_manager.cc

Issue 1921973002: Convert //components/[a-e]* 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: components/devtools_discovery/devtools_discovery_manager.cc
diff --git a/components/devtools_discovery/devtools_discovery_manager.cc b/components/devtools_discovery/devtools_discovery_manager.cc
index 752dec10c350f0e47417f47622a1a8a8ab6f2ded..aaa998cba3c19ee997824c7868ea8c2a9526cf12 100644
--- a/components/devtools_discovery/devtools_discovery_manager.cc
+++ b/components/devtools_discovery/devtools_discovery_manager.cc
@@ -24,7 +24,7 @@ DevToolsDiscoveryManager::~DevToolsDiscoveryManager() {
STLDeleteElements(&providers_);
}
-void DevToolsDiscoveryManager::AddProvider(scoped_ptr<Provider> provider) {
+void DevToolsDiscoveryManager::AddProvider(std::unique_ptr<Provider> provider) {
providers_.push_back(provider.release());
}
@@ -45,10 +45,10 @@ void DevToolsDiscoveryManager::SetCreateCallback(
create_callback_ = callback;
}
-scoped_ptr<DevToolsTargetDescriptor>
-DevToolsDiscoveryManager::CreateNew(const GURL& url) {
+std::unique_ptr<DevToolsTargetDescriptor> DevToolsDiscoveryManager::CreateNew(
+ const GURL& url) {
if (create_callback_.is_null())
- return scoped_ptr<DevToolsTargetDescriptor>();
+ return nullptr;
return create_callback_.Run(url);
}
« no previous file with comments | « components/devtools_discovery/devtools_discovery_manager.h ('k') | components/devtools_http_handler/devtools_http_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698