summaryrefslogtreecommitdiffstats
path: root/components/gcm_driver
diff options
context:
space:
mode:
authoraurimas <aurimas@chromium.org>2014-09-25 10:35:37 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-25 17:36:03 +0000
commitd350ea5cedf5d3b139f7d88c3c66b3f5e36952c7 (patch)
treee65141e048dfb32b80a0797ef27bfe3bba2b18b2 /components/gcm_driver
parentf89c3a34a93ae0bccf69046febe03c61b14f932f (diff)
downloadchromium_src-d350ea5cedf5d3b139f7d88c3c66b3f5e36952c7.zip
chromium_src-d350ea5cedf5d3b139f7d88c3c66b3f5e36952c7.tar.gz
chromium_src-d350ea5cedf5d3b139f7d88c3c66b3f5e36952c7.tar.bz2
[Checkstyle] Fix misc style issues in Java files.
BUG=318404 TBR=zea@chromium.org,mkosiba@chromium.org Review URL: https://codereview.chromium.org/600983002 Cr-Commit-Position: refs/heads/master@{#296734}
Diffstat (limited to 'components/gcm_driver')
-rw-r--r--components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java b/components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java
index f6596ee..e13ae1f 100644
--- a/components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java
+++ b/components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java
@@ -162,8 +162,8 @@ public class GCMDriver {
}
static void onMessageReceived(Context context, final String appId, final Bundle extras) {
- final String PUSH_API_DATA_KEY = "data";
- if (!extras.containsKey(PUSH_API_DATA_KEY)) {
+ final String pushApiDataKey = "data";
+ if (!extras.containsKey(pushApiDataKey)) {
// For now on Android only the Push API uses GCMDriver. To avoid double-handling of
// messages already handled in Java by other implementations of MultiplexingGcmListener,
// and unnecessarily waking up the browser processes for all existing GCM messages that
@@ -181,18 +181,18 @@ public class GCMDriver {
ThreadUtils.assertOnUiThread();
launchNativeThen(context, new Runnable() {
@Override public void run() {
- final String BUNDLE_SENDER_ID = "from";
- final String BUNDLE_COLLAPSE_KEY = "collapse_key";
- final String BUNDLE_GCMMPLEX = "com.google.ipc.invalidation.gcmmplex.";
+ final String bundleSenderId = "from";
+ final String bundleCollapseKey = "collapse_key";
+ final String bundleGcmplex = "com.google.ipc.invalidation.gcmmplex.";
- String senderId = extras.getString(BUNDLE_SENDER_ID);
- String collapseKey = extras.getString(BUNDLE_COLLAPSE_KEY);
+ String senderId = extras.getString(bundleSenderId);
+ String collapseKey = extras.getString(bundleCollapseKey);
List<String> dataKeysAndValues = new ArrayList<String>();
for (String key : extras.keySet()) {
// TODO(johnme): Check there aren't other keys that we need to exclude.
- if (key == BUNDLE_SENDER_ID || key == BUNDLE_COLLAPSE_KEY ||
- key.startsWith(BUNDLE_GCMMPLEX))
+ if (key == bundleSenderId || key == bundleCollapseKey ||
+ key.startsWith(bundleGcmplex))
continue;
dataKeysAndValues.add(key);
dataKeysAndValues.add(extras.getString(key));