Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(859)

Unified Diff: chrome/browser/sync/glue/sync_backend_host.cc

Issue 15421011: Use OAuth2 token for sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/sync_backend_host.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc
index 65afc71ccb781cadfd7654acbf677bab6061fa04..1df8e027f64520ce898ed1a7b6fb5e4e35c05dd8 100644
--- a/chrome/browser/sync/glue/sync_backend_host.cc
+++ b/chrome/browser/sync/glue/sync_backend_host.cc
@@ -307,6 +307,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(switches::kSyncNotificationHostPort)) {
notifier_options.xmpp_host_port =

Powered by Google App Engine
This is Rietveld 408576698