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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappInfo.java

Issue 2071213005: Use metadata when launching WebAPKs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add WebAPK's metadata in WebappDataStorage. Created 4 years, 6 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/WebappInfo.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappInfo.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappInfo.java
index fc4c5952cbbc7eb127c45247622fec5bac7d527c..f0460b65e501bbaab2342a67c8341e4a1a376940 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappInfo.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappInfo.java
@@ -169,6 +169,10 @@ public class WebappInfo {
return mOrientation;
}
+ public void setOrientation(int orientation) {
+ mOrientation = orientation;
+ }
+
public int source() {
return mSource;
}
@@ -182,6 +186,10 @@ public class WebappInfo {
return mThemeColor;
}
+ public void setThemeColor(long color) {
+ mThemeColor = color;
+ }
+
/**
* Returns whether the theme color specified in the Intent is valid.
* A theme color isn't valid if its value is ShortcutHelper.MANIFEST_COLOR_INVALID_OR_MISSING;
@@ -216,6 +224,10 @@ public class WebappInfo {
return hasValidBackgroundColor() ? (int) mBackgroundColor : fallback;
}
+ public void setBackgroundColor(long color) {
+ mBackgroundColor = color;
+ }
+
// This is needed for clients that want to send the icon trough an intent.
public String encodedIcon() {
return mEncodedIcon;

Powered by Google App Engine
This is Rietveld 408576698