| 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 3138732db0b050eddefec5aea7b304f876d6b78f..ff006bde8b1e66be6aa0abf6194d7dccab8cf702 100644
|
| --- a/components/devtools_discovery/devtools_discovery_manager.cc
|
| +++ b/components/devtools_discovery/devtools_discovery_manager.cc
|
| @@ -40,6 +40,18 @@ DevToolsTargetDescriptor::List DevToolsDiscoveryManager::GetDescriptors() {
|
| return result;
|
| }
|
|
|
| +void DevToolsDiscoveryManager::SetCreateCallback(
|
| + const CreateCallback& callback) {
|
| + create_callback_ = callback;
|
| +}
|
| +
|
| +scoped_ptr<DevToolsTargetDescriptor>
|
| +DevToolsDiscoveryManager::CreateNew(const GURL& url) {
|
| + if (create_callback_.is_null())
|
| + return scoped_ptr<DevToolsTargetDescriptor>();
|
| + return create_callback_.Run(url);
|
| +}
|
| +
|
| DevToolsTargetDescriptor::List
|
| DevToolsDiscoveryManager::GetDescriptorsFromProviders() {
|
| DevToolsTargetDescriptor::List result;
|
|
|