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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java

Issue 1234653004: webapps: utilize manifest theme colors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mounir's comments Created 5 years, 5 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/document/ChromeLauncherActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
index a6f411022f3f6e07a51153feb809b798e66c936e..46bac28629ed811b4dfc5231039a131832a34253 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
@@ -772,6 +772,8 @@ public class ChromeLauncherActivity extends Activity
ShortcutHelper.EXTRA_ORIENTATION, ScreenOrientationValues.DEFAULT);
int webappSource = IntentUtils.safeGetIntExtra(intent,
ShortcutHelper.EXTRA_SOURCE, ShortcutHelper.SOURCE_UNKNOWN);
+ long webappThemeColor = IntentUtils.safeGetLongExtra(intent,
+ ShortcutHelper.EXTRA_THEME_COLOR, ShortcutHelper.THEME_COLOR_INVALID_OR_MISSING);
if (webappId != null && webappUrl != null) {
String webappMacString = IntentUtils.safeGetStringExtra(
@@ -785,8 +787,8 @@ public class ChromeLauncherActivity extends Activity
webappUrl, webappSource);
}
- WebappActivity.launchInstance(this, webappId,
- webappUrl, webappIcon, webappTitle, webappOrientation, webappSource);
+ WebappActivity.launchInstance(this, webappId, webappUrl, webappIcon,
+ webappTitle, webappOrientation, webappSource, webappThemeColor);
} else {
Log.e(TAG, "Shortcut (" + webappUrl + ") opened in Chrome.");

Powered by Google App Engine
This is Rietveld 408576698