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

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

Issue 952213006: Added DCHECK to clarify expectations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@948413006
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bb9a43e17f058a9e93efc165a5a5ae9051890ce9..218b31cad57c6fab32f19924dc9884f4229cfde4 100644
--- a/chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.cc
+++ b/chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/local_discovery/privet_http_impl.h"
#include "chrome/browser/local_discovery/service_discovery_shared_client.h"
#include "chrome/common/chrome_switches.h"
+#include "net/base/net_util.h"
namespace local_discovery {
@@ -62,6 +63,8 @@ void PrivetHTTPAsynchronousFactoryImpl::ResolutionImpl::Start(
const net::HostPortPair& address,
const ResultCallback& callback) {
#if defined(OS_MACOSX)
+ net::IPAddressNumber ip_address;
+ DCHECK(net::ParseIPLiteralToNumber(address.host(), &ip_address));
// MAC already has IP there.
callback.Run(scoped_ptr<PrivetHTTPClient>(
new PrivetHTTPClientImpl(name_, address, request_context_.get())));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698