diff options
author | pavely@chromium.org <pavely@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-06 17:35:05 +0000 |
---|---|---|
committer | pavely@chromium.org <pavely@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-06 17:35:05 +0000 |
commit | cd41a750a2f3bc6be9e7040023f12e519cc28ebe (patch) | |
tree | 64c90b437a66a40e34a6bae103a2684b1e3a82c4 /sync | |
parent | b3c592831308d1cebf4cca9b125974c5c698c247 (diff) | |
download | chromium_src-cd41a750a2f3bc6be9e7040023f12e519cc28ebe.zip chromium_src-cd41a750a2f3bc6be9e7040023f12e519cc28ebe.tar.gz chromium_src-cd41a750a2f3bc6be9e7040023f12e519cc28ebe.tar.bz2 |
Fix sync_client to work with oauth2 tokens.
When initializing invalidator pass parameter that says that token is
OAuth2 access token.
Review URL: https://codereview.chromium.org/54353005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync')
-rw-r--r-- | sync/tools/sync_client.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sync/tools/sync_client.cc b/sync/tools/sync_client.cc index fb320a8..df2d02b 100644 --- a/sync/tools/sync_client.cc +++ b/sync/tools/sync_client.cc @@ -195,6 +195,7 @@ notifier::NotifierOptions ParseNotifierOptions( request_context_getter) { notifier::NotifierOptions notifier_options; notifier_options.request_context_getter = request_context_getter; + notifier_options.auth_mechanism = "X-OAUTH2"; if (command_line.HasSwitch(kXmppHostPortSwitch)) { notifier_options.xmpp_host_port = |