DO NOT MERGE: Repeatedly prompting when no internet connection

When internet connection is not avaiable there is always
a prompt even if user has checked "never ask again" on the
dialog prompt.
This is caused by noInternetAccessExpected reset while reloading
network configuration and this patch puts noInternetAccessExpected
into network history so that its value is not lost.

Bug: 29085788
Bug: 29111340

(cherry picked from commit 4854de88e57279bf930f0754b268093061e88544)

Change-Id: I407a5c60e89d7da4ac7fe30df08087fe24039f98
2 files changed
tree: f06b9ec0ba03d68cc87505186f6b9cba8a7d7880
  1. service/
  2. tests/