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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/remote/RemoteMediaPlayerBridge.java

Issue 2815103004: Android: convert kEnumName to ENUM_NAME in java_cpp_enum.py. (Closed)
Patch Set: Address agrieve@ comments Created 3 years, 8 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: chrome/android/java/src/org/chromium/chrome/browser/media/remote/RemoteMediaPlayerBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/remote/RemoteMediaPlayerBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/media/remote/RemoteMediaPlayerBridge.java
index 3bdab611244f1039da7cc634c8c9b769c49af353..d77e74adf606bb7b5c010d1eb79ede1afb6a70d4 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/remote/RemoteMediaPlayerBridge.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/remote/RemoteMediaPlayerBridge.java
@@ -322,14 +322,14 @@ public class RemoteMediaPlayerBridge {
Log.d(TAG, "onRouteAvailabilityChange: " + mRouteIsAvailable + ", " + mIsPlayable);
if (mNativeRemoteMediaPlayerBridge == 0) return;
- int availability = WebRemotePlaybackAvailability.kDeviceNotAvailable;
+ int availability = WebRemotePlaybackAvailability.DEVICE_NOT_AVAILABLE;
if (!mRouteIsAvailable && !mIsPlayable) {
- availability = WebRemotePlaybackAvailability.kSourceNotSupported;
+ availability = WebRemotePlaybackAvailability.SOURCE_NOT_SUPPORTED;
} else if (mRouteIsAvailable && mIsPlayable) {
- availability = WebRemotePlaybackAvailability.kDeviceAvailable;
+ availability = WebRemotePlaybackAvailability.DEVICE_AVAILABLE;
} else if (mRouteIsAvailable) {
// mIsPlayable is false here.
- availability = WebRemotePlaybackAvailability.kSourceNotCompatible;
+ availability = WebRemotePlaybackAvailability.SOURCE_NOT_COMPATIBLE;
}
nativeOnRouteAvailabilityChanged(mNativeRemoteMediaPlayerBridge, availability);
}

Powered by Google App Engine
This is Rietveld 408576698