ShowMessageBox check if window has DispatcherClient

BUG=313264

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232462 0039d316-1c4b-4281-b951-d872f2087c98
net: allow invalid TransportSecurityState to process invalid DNS names.

Other parts of the network stack are processing and fetching results from
invalid DNS names, but TransportSecurityState was rejecting them and therefore
HSTS policies didn't apply.

This change removes the sanity checking so that TransportSecurityState is more
promiscuous in what it'll try and process.

BUG=312689

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232463 0039d316-1c4b-4281-b951-d872f2087c98
Requesting background permission only when user is opted in to GN.

BUG=164227
TEST=Opt the user out and in, and check that next poll sets/unsets background permission correspondingly.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232464 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 232463
SVN changes up to revision 232464