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

Unified Diff: chrome/browser/local_discovery/privet_notifications.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/local_discovery/privet_notifications.cc
diff --git a/chrome/browser/local_discovery/privet_notifications.cc b/chrome/browser/local_discovery/privet_notifications.cc
index cd02d669a2079d53b9d6be375264523f8bb96ec0..9fee9c3bcce5a0b2885d71f2b9f59d20efd073b6 100644
--- a/chrome/browser/local_discovery/privet_notifications.cc
+++ b/chrome/browser/local_discovery/privet_notifications.cc
@@ -105,13 +105,11 @@ void PrivetNotificationsListener::DeviceChanged(
if (!device_context->registered) {
device_context->privet_http_resolution =
- privet_http_factory_->CreatePrivetHTTP(
- name,
- description.address,
- base::Bind(&PrivetNotificationsListener::CreateInfoOperation,
- base::Unretained(this)));
-
- device_context->privet_http_resolution->Start();
+ privet_http_factory_->CreatePrivetHTTP(name);
+ device_context->privet_http_resolution->Start(
+ description.address,
+ base::Bind(&PrivetNotificationsListener::CreateInfoOperation,
+ base::Unretained(this)));
}
}

Powered by Google App Engine
This is Rietveld 408576698