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

Issue 1906573002: Async DNS: Don't watch hosts file on Android (Closed)

Created:
4 years, 8 months ago by Julia Tuttle
Modified:
4 years, 7 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Async DNS: Don't watch hosts file on Android The hosts file on Android should never change (it's on the read-only /system partition), and attempting to watch it also tries to watch /, which triggers a SELinux denial in Android N. Therefore, don't watch it on Android. BUG=600442 Committed: https://crrev.com/a2e7ea61ce75af85c4479c5af292383e3cf08341 Cr-Commit-Position: refs/heads/master@{#391799}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase, disable unittest that might be hanging, tweak style #

Patch Set 4 : Fix compile error on Android. #

Patch Set 5 : :facepalm: #

Patch Set 6 : Finish tearing out hosts file watching on Android. #

Total comments: 2

Patch Set 7 : Comment tweak. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -30 lines) Patch
M net/dns/dns_config_service_posix.cc View 1 2 3 4 5 6 7 chunks +14 lines, -23 lines 0 comments Download
M net/dns/dns_config_service_posix_unittest.cc View 1 2 3 4 5 3 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
Julia Tuttle
PTAL, rdsmith. Disabled the unittest that was hanging before, since it was testing for the ...
4 years, 7 months ago (2016-04-27 14:41:50 UTC) #2
Randy Smith (Not in Mondays)
If iOS doesn't have a host file, should be be running the test on iOS?
4 years, 7 months ago (2016-04-27 22:25:34 UTC) #3
Randy Smith (Not in Mondays)
On 2016/04/27 22:25:34, Randy Smith - Not in Fridays wrote: > If iOS doesn't have ...
4 years, 7 months ago (2016-04-27 22:26:01 UTC) #4
Julia Tuttle
We shouldn't be running the test on iOS, but that *entire section of the file* ...
4 years, 7 months ago (2016-05-04 15:30:43 UTC) #6
Randy Smith (Not in Mondays)
LGTM modulo below comment nit. https://codereview.chromium.org/1906573002/diff/100001/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): https://codereview.chromium.org/1906573002/diff/100001/net/dns/dns_config_service_posix.cc#newcode86 net/dns/dns_config_service_posix.cc:86: #else // !defined(OS_ANDROID) && ...
4 years, 7 months ago (2016-05-04 21:31:41 UTC) #7
Julia Tuttle
Thanks, Randy! https://codereview.chromium.org/1906573002/diff/100001/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): https://codereview.chromium.org/1906573002/diff/100001/net/dns/dns_config_service_posix.cc#newcode86 net/dns/dns_config_service_posix.cc:86: #else // !defined(OS_ANDROID) && !defined(OS_IOS) && !defined(OS_MACOSX) ...
4 years, 7 months ago (2016-05-05 12:58:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906573002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906573002/120001
4 years, 7 months ago (2016-05-05 12:58:24 UTC) #11
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-05-05 13:56:48 UTC) #12
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 13:58:22 UTC) #14
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a2e7ea61ce75af85c4479c5af292383e3cf08341
Cr-Commit-Position: refs/heads/master@{#391799}

Powered by Google App Engine
This is Rietveld 408576698