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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/MediaResourceGetter.java

Issue 1002883002: Fix up if statement curly braces issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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: content/public/android/java/src/org/chromium/content/browser/MediaResourceGetter.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/MediaResourceGetter.java b/content/public/android/java/src/org/chromium/content/browser/MediaResourceGetter.java
index ede0c2ec79e0850cd0ba5d06fedfc533ea8609a0..19eb219fd0ee4317aea02d6482b05c7d4a4ca13d 100644
--- a/content/public/android/java/src/org/chromium/content/browser/MediaResourceGetter.java
+++ b/content/public/android/java/src/org/chromium/content/browser/MediaResourceGetter.java
@@ -98,38 +98,31 @@ class MediaResourceGetter {
@Override
public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
+ if (this == obj) return true;
+ if (obj == null) return false;
+ if (getClass() != obj.getClass()) return false;
MediaMetadata other = (MediaMetadata) obj;
- if (mDurationInMilliseconds != other.mDurationInMilliseconds)
- return false;
- if (mHeight != other.mHeight)
- return false;
- if (mSuccess != other.mSuccess)
- return false;
- if (mWidth != other.mWidth)
- return false;
+ if (mDurationInMilliseconds != other.mDurationInMilliseconds) return false;
+ if (mHeight != other.mHeight) return false;
+ if (mSuccess != other.mSuccess) return false;
+ if (mWidth != other.mWidth) return false;
return true;
}
}
@CalledByNative
private static MediaMetadata extractMediaMetadata(final Context context,
- final String url,
- final String cookies,
- final String userAgent) {
+ final String url,
+ final String cookies,
+ final String userAgent) {
return new MediaResourceGetter().extract(
context, url, cookies, userAgent);
}
@CalledByNative
private static MediaMetadata extractMediaMetadataFromFd(int fd,
- long offset,
- long length) {
+ long offset,
+ long length) {
return new MediaResourceGetter().extract(fd, offset, length);
}

Powered by Google App Engine
This is Rietveld 408576698