summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/profile_sync_service.cc
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-26 17:28:21 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-26 17:28:21 +0000
commite3688a2a3262b633d08837e336a0c41f28c72f37 (patch)
treea15bb77432383bd8b7631efa8bafa5abe67d0f02 /chrome/browser/sync/profile_sync_service.cc
parente3f589a8ff35b87a387f17bf002cb81041c45a43 (diff)
downloadchromium_src-e3688a2a3262b633d08837e336a0c41f28c72f37.zip
chromium_src-e3688a2a3262b633d08837e336a0c41f28c72f37.tar.gz
chromium_src-e3688a2a3262b633d08837e336a0c41f28c72f37.tar.bz2
[Sync] Added some switches for testing/debugging.
Added back in --sync-invalidate-xmpp-login (now, not only in debug mode!). Added --sync-allow-insecure-xmpp-connection, which enables sync to connect to insecure XMPP servers (e.g., a local one). Changed --use-ssl-tcp to --sync-try-ssltcp-first-for-xmpp. BUG=None TEST=Manual Review URL: http://codereview.chromium.org/4158001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63903 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/profile_sync_service.cc')
-rw-r--r--chrome/browser/sync/profile_sync_service.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index f8a7e57..9a6ea99 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -280,10 +280,22 @@ void ProfileSyncService::InitSettings() {
}
notifier_options_.try_ssltcp_first =
- command_line.HasSwitch(switches::kSyncUseSslTcp);
+ command_line.HasSwitch(switches::kSyncTrySsltcpFirstForXmpp);
if (notifier_options_.try_ssltcp_first)
VLOG(1) << "Trying SSL/TCP port before XMPP port for notifications.";
+ notifier_options_.invalidate_xmpp_login =
+ command_line.HasSwitch(switches::kSyncInvalidateXmppLogin);
+ if (notifier_options_.invalidate_xmpp_login) {
+ VLOG(1) << "Invalidating sync XMPP login.";
+ }
+
+ notifier_options_.allow_insecure_connection =
+ command_line.HasSwitch(switches::kSyncAllowInsecureXmppConnection);
+ if (notifier_options_.allow_insecure_connection) {
+ VLOG(1) << "Allowing insecure XMPP connections.";
+ }
+
if (command_line.HasSwitch(switches::kSyncNotificationMethod)) {
const std::string notification_method_str(
command_line.GetSwitchValueASCII(switches::kSyncNotificationMethod));