Add flag to avoid blocking the PNaCl translator when chrome NaCl GDB flag is on.

Augment the NaCl GDB mask to avoid blocking the PNaCl
translator in addition to secure shell. Make this the
default.

This has the side-effect of identifying the translator as
separate from the application in chrome's task manager,
since the "url" is changed for these helper NaCl modules
from the application manifest to something
like chrome://pnacl-translator/x86-64/pnacl-llc.nexe.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3765

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255543 0039d316-1c4b-4281-b951-d872f2087c98
Clean up InvalidationService test infrastructure.

Consolidate the test support code in InvalidationServiceFactory and
compile FakeInvalidationService and P2PInvalidationService only for
tests.

BUG=chromium:269455
TEST=Compiles and passes tests.
TBR=dcheng@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255544 0039d316-1c4b-4281-b951-d872f2087c98
Refactoring of the NetworkPortalDetector.

Different detection strategies are extracted into individual entities,
which can be switched at run-time. Currently we have only two detection strategies:
* login screen strategy: 3 detection attempts, detection timeout is
  proportional to current attempt number.
* error screen strategy: unlimited number of detection attempts,
  detection timeout is fixed.

BUG=240237
TEST=unit_tests:NetworkPortalDetectorImpl*
R=nkostylev@chromium.org

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

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