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

Unified Diff: sync/android/java/src/org/chromium/sync/SyncSwitches.java

Issue 314293006: Implement GCMDriver.java using MultiplexingGcmListener (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FindBugs Created 6 years, 6 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: sync/android/java/src/org/chromium/sync/SyncSwitches.java
diff --git a/sync/android/java/src/org/chromium/sync/SyncSwitches.java b/sync/android/java/src/org/chromium/sync/SyncSwitches.java
new file mode 100644
index 0000000000000000000000000000000000000000..285ded66bc1546a827c4c3939822b9f1ee6b3345
--- /dev/null
+++ b/sync/android/java/src/org/chromium/sync/SyncSwitches.java
@@ -0,0 +1,22 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.sync;
+
+/**
+ * Contains all of the command line switches that are specific to the sync/
+ * portion of Chromium on Android.
+ */
+public abstract class SyncSwitches {
+ // It's currently necessary for people wanting to try out the Push API to disable Chrome Sync's
+ // use of GCM (as Android only grants a single registration ID, and they can't both use it).
+ // Accordingly, this switch lets you disable Sync's ability to receive GCM messages in order to
+ // make it possible to try out the Push API. Don't use this in production!
+ // TODO(johnme): Remove this command line switch once disabling sync is no longer necessary.
+ public static final String DISABLE_SYNC_GCM_IN_ORDER_TO_TRY_PUSH_API =
+ "disable-sync-gcm-in-order-to-try-push-api";
+
+ // Prevent instantiation.
+ private SyncSwitches() {}
+}

Powered by Google App Engine
This is Rietveld 408576698