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

Unified Diff: components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GoogleCloudMessagingV2.java

Issue 662603004: Fix Java indentation issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GoogleCloudMessagingV2.java
diff --git a/components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GoogleCloudMessagingV2.java b/components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GoogleCloudMessagingV2.java
index cd5187e8ca0e10a7cdc0ae1431b7809ea7e10094..d8a825340212511f064fb62e66500636bc976073 100644
--- a/components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GoogleCloudMessagingV2.java
+++ b/components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GoogleCloudMessagingV2.java
@@ -99,7 +99,7 @@ public class GoogleCloudMessagingV2 {
if (err != null) {
throw new IOException(err);
} else {
- throw new IOException(ERROR_SERVICE_NOT_AVAILABLE);
+ throw new IOException(ERROR_SERVICE_NOT_AVAILABLE);
}
} catch (InterruptedException e) {
throw new IOException(e.getMessage());
@@ -109,9 +109,7 @@ public class GoogleCloudMessagingV2 {
private void internalRegister(Messenger messenger, String subtype, String... senderIds) {
Intent intent = new Intent(ACTION_C2DM_REGISTER);
intent.setPackage(GOOGLE_PLAY_SERVICES_PACKAGE);
- if (subtype != null) {
- intent.putExtra("subtype", subtype);
- }
+ if (subtype != null) intent.putExtra("subtype", subtype);
intent.putExtra(EXTRA_MESSENGER, messenger);
setPackageNameExtra(intent);
intent.putExtra(EXTRA_SENDER, getFlatSenderIds(senderIds));
@@ -195,7 +193,7 @@ public class GoogleCloudMessagingV2 {
Intent intent = new Intent(ACTION_C2DM_UNREGISTER);
intent.setPackage(GOOGLE_PLAY_SERVICES_PACKAGE);
if (subtype != null) {
- intent.putExtra("subtype", subtype);
+ intent.putExtra("subtype", subtype);
}
intent.putExtra(EXTRA_MESSENGER, messenger);
setPackageNameExtra(intent);

Powered by Google App Engine
This is Rietveld 408576698