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

Unified Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc

Issue 948413006: Move callback and host port args into Start method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_sdc
Patch Set: Created 5 years, 10 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/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();
}

Powered by Google App Engine
This is Rietveld 408576698