Commit b3ca8486 authored by vitalybuka's avatar vitalybuka Committed by Commit bot

Added DCHECK to clarify expectations

BUG=461504

Review URL: https://codereview.chromium.org/952213006

Cr-Commit-Position: refs/heads/master@{#318171}
parent 690ee092
......@@ -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 {
......@@ -80,6 +81,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())));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment