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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInfo.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/webapps/WebApkInfo.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInfo.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInfo.java
index b05dda7d5c6f48f84e86bd1fedb206333d23629b..76cd86761d8750205f4088ec142ca894f67d2618 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInfo.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInfo.java
@@ -331,19 +331,19 @@ public class WebApkInfo extends WebappInfo {
*/
private static int displayModeFromString(String displayMode) {
if (displayMode == null) {
- return WebDisplayMode.kUndefined;
+ return WebDisplayMode.UNDEFINED;
}
if (displayMode.equals("fullscreen")) {
- return WebDisplayMode.kFullscreen;
+ return WebDisplayMode.FULLSCREEN;
} else if (displayMode.equals("standalone")) {
- return WebDisplayMode.kStandalone;
+ return WebDisplayMode.STANDALONE;
} else if (displayMode.equals("minimal-ui")) {
- return WebDisplayMode.kMinimalUi;
+ return WebDisplayMode.MINIMAL_UI;
} else if (displayMode.equals("browser")) {
- return WebDisplayMode.kBrowser;
+ return WebDisplayMode.BROWSER;
} else {
- return WebDisplayMode.kUndefined;
+ return WebDisplayMode.UNDEFINED;
}
}

Powered by Google App Engine
This is Rietveld 408576698