Remove Profile knowledge from MutableProfileOAuth2TokenService

This CL removes all remaining calls to profile() in
MutableProfileOAuth2TokenService, changing them to be calls on the
SigninClient. Concretely, it adds the following APIs to SigninClient:
- CanRevokeCredentials()
- GetURLRequestContext()

Note that the latter is a BrowserContext-level API and thus could go in a
driver within the Signin component. However, at the current time it does not
appear that there will be any other reason that the Signin component should be
a layered component; I would like to avoid adding the extra complexity in
internal structure until there is a compelling need for introducing the
layering.

BUG=334184

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256438 0039d316-1c4b-4281-b951-d872f2087c98
Close the STDIN and STDOUT handles in the native messaging hosts on Windows.

After the native messaging channel starts the native messaging reader will keep doing blocking read operations on the input named pipe. If any other thread tries to perform any operation on STDIN, it will also block because the input named pipe is synchronous (non-overlapped).
It is pretty common for a DLL to query the device info (GetFileType) of the STD* handles at startup. So any LoadLibrary request can potentially be blocked. To prevent that from happening we close STDIN and STDOUT handles as soon as we retrieve the corresponding file handles.

BUG=350071

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256439 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 256438
Remove ExtensionService reference from extensions ProcessManager

Use ExtensionSystem to check if the extensions system is ready instead.

Long ago Chrome OS did not create an ExtensionService at the login screen.
This is no longer true, so this code is equivalent to the old behavior.

BUG=351152
TEST=manual, Chrome OS boots and loads extensions like AdBlock

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256440 0039d316-1c4b-4281-b951-d872f2087c98
[Sync] Fix long bookmark title syncing

Sync internally performs some truncation on bookmark titles if they are too
long. This means though that the association logic will look at the truncated
and non-truncated versions and decide they are different bookmarks, resulting
in duplication. We fix this by performing the same truncation at bookmark
comparison time in the associator.

BUG=334537

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

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