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

Unified Diff: remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java

Issue 744453002: Fix a bunch of Java Checkstyle issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NeedsBraces to info Created 6 years, 1 month 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: remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java b/remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java
index 1349207883cf13373d81d6e2fc50759404143251..c8bd88ab7550d6d51db1c5f269db67de8d29d009 100644
--- a/remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java
+++ b/remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java
@@ -91,9 +91,9 @@ public class ThirdPartyTokenFetcher {
// redirect URI as it is possible for the other applications to intercept the redirect URI.
// Instead, we use the intent scheme URI, which can restrict a specific package to handle
// the intent. See https://developer.chrome.com/multidevice/android/intents.
- this.mRedirectUri = "intent://" + REDIRECT_URI_PATH + "#Intent;" +
- "package=" + mRedirectUriScheme + ";" +
- "scheme=" + mRedirectUriScheme + ";end;";
+ this.mRedirectUri = "intent://" + REDIRECT_URI_PATH + "#Intent;"
+ + "package=" + mRedirectUriScheme + ";"
+ + "scheme=" + mRedirectUriScheme + ";end;";
}
/**
@@ -103,10 +103,9 @@ public class ThirdPartyTokenFetcher {
*/
public void fetchToken(String tokenUrl, String clientId, String scope) {
if (!isValidTokenUrl(tokenUrl)) {
- failFetchToken(
- "Token URL does not match the domain\'s allowed URL patterns." +
- " URL: " + tokenUrl +
- ", patterns: " + TextUtils.join(",", this.mTokenUrlPatterns));
+ failFetchToken("Token URL does not match the domain\'s allowed URL patterns."
+ + " URL: " + tokenUrl
+ + ", patterns: " + TextUtils.join(",", this.mTokenUrlPatterns));
return;
}
@@ -150,9 +149,9 @@ public class ThirdPartyTokenFetcher {
Uri data = intent.getData();
if (data != null) {
- return Intent.ACTION_VIEW.equals(action) &&
- this.mRedirectUriScheme.equals(data.getScheme()) &&
- REDIRECT_URI_PATH.equals(data.getPath());
+ return Intent.ACTION_VIEW.equals(action)
+ && this.mRedirectUriScheme.equals(data.getScheme())
+ && REDIRECT_URI_PATH.equals(data.getPath());
}
return false;
}

Powered by Google App Engine
This is Rietveld 408576698