Chromium Code Reviews| 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 { |
|
nyquist
2014/06/11 07:52:13
Does this need to be abstract? What about just usi
johnme
2014/06/11 13:53:12
All the existing switches files use an abstract cl
|
| + // 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() {} |
| +} |