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

Unified Diff: chromeos/network/host_resolver_impl_chromeos.cc

Issue 384503005: Merge 280230 "Flag myIpAddress requests for chromeos" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2062/src/
Patch Set: Created 6 years, 5 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 | chromeos/network/host_resolver_impl_chromeos_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/host_resolver_impl_chromeos.cc
===================================================================
--- chromeos/network/host_resolver_impl_chromeos.cc (revision 282214)
+++ chromeos/network/host_resolver_impl_chromeos.cc (working copy)
@@ -162,7 +162,7 @@
const RequestInfo& info,
net::AddressList* addresses) {
DCHECK(thread_checker_.CalledOnValidThread());
- if (info.hostname() != net::GetHostName() || ipv4_address_.empty())
+ if (!info.is_my_ip_address() || ipv4_address_.empty())
return false;
// Use IPConfig data for localhost address lookup.
« no previous file with comments | « no previous file | chromeos/network/host_resolver_impl_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698