The browser-side WebSocket implementation needs to avoid sending invalid
UTF-8 data from a compromised renderer over the network. It also needs to validate UTF-8 data from the network for protocol compliance. Since WebSocket messages are broken into frames and
frame boundaries are permitted to occur in the middle of a UTF8
character, we need a streaming UTF-8 validator. Implement one.

BUG=327613
TEST=base_unittests --gtest_filter=Streaming*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244936 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 244936
[DevTools] Extract SelfAsDevice provider class to simplify testing.

Re-roll of 242438.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244937 0039d316-1c4b-4281-b951-d872f2087c98
Move refresh_tokens_ to MutableProfileOAuth2TokenService.

This CL moves refresh_tokens_ from ProfileOAuth2TokenService to
MutableProfileOAuth2TokenService. It also removes some unused private
methods from ProfileOAuth2TokenService.

R=rogerta
TBR=sky, rohitrao
BUG=320625

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244591

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244938 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 244937
[Telemetry] Don't count current page contents towards speed index completeness.

This patch blanks out the current page with white, which is ignored in speed
index calculation. This way, any page contents that are visible prior to the
navigation are counted as 0% visually complete. WPT does not have this issue
because, unlike Telemetry, it always navigates from about:blank.

It also switches the flash color to match WPT's just for consistency.

BUG=323813
NOTRY=True
R=slamm@chromium.org, szym@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244939 0039d316-1c4b-4281-b951-d872f2087c98
Roll grit to 146:

142: Simplify how variable_map is initialized.
143: android2grd tool now puts <outputs> element first.
144: Don't include _unittest.py files in `grit_info --inputs` output.
145: Add a --depfile flag that explicitly names the generated depfile.
146: Output the subkey type for list policies on the plist generator.

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244940 0039d316-1c4b-4281-b951-d872f2087c98
Update .DEPS.git

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