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

Unified Diff: chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.cc

Issue 954883003: Remove privet_http_asynchronous_factory_mac.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wed Feb 25 09:06:16 PST 2015 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_http_asynchronous_factory_impl.cc
diff --git a/chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.cc b/chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.cc
index 8a961aaeb1d23bfaf98f1cb3e2b6be62ea7db28d..67f25f3575614ee74dbf5950df4a1f7ebbeae4b4 100644
--- a/chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.cc
+++ b/chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.cc
@@ -71,7 +71,13 @@ PrivetHTTPAsynchronousFactoryImpl::ResolutionImpl::~ResolutionImpl() {
}
void PrivetHTTPAsynchronousFactoryImpl::ResolutionImpl::Start() {
+#if defined(OS_MACOSX)
+ // MAC already has IP there.
+ callback_.Run(scoped_ptr<PrivetHTTPClient>(
+ new PrivetHTTPClientImpl(name_, hostport_, request_context_.get())));
+#else
resolver_->Start();
+#endif
}
const std::string&

Powered by Google App Engine
This is Rietveld 408576698