| Index: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
|
| diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
|
| index 0c9ac495a4a7e3b77c921257110b141d1b9fd8f4..4a0c70c17b8a743cd0088fee68d4b70bfbb6c289 100644
|
| --- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
|
| +++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
|
| @@ -210,11 +210,11 @@ void LocalDiscoveryUIHandler::HandleRegisterDevice(
|
| }
|
|
|
| if (found->second.version < kCloudDevicesPrivetVersion) {
|
| - privet_resolution_ = privet_http_factory_->CreatePrivetHTTP(
|
| - device, found->second.address,
|
| + privet_resolution_ = privet_http_factory_->CreatePrivetHTTP(device);
|
| + privet_resolution_->Start(
|
| + found->second.address,
|
| base::Bind(&LocalDiscoveryUIHandler::StartRegisterHTTP,
|
| base::Unretained(this)));
|
| - privet_resolution_->Start();
|
| } else {
|
| OnSetupError();
|
| }
|
|
|