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

Unified Diff: chrome/browser/android/shortcut_info.cc

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/browser/android/shortcut_info.cc
diff --git a/chrome/browser/android/shortcut_info.cc b/chrome/browser/android/shortcut_info.cc
index 67e0c5549c344667fdc39db4fc854bd8da65ea7d..ca8fb29ed38f30d93720df27dad8ae02637b5f3d 100644
--- a/chrome/browser/android/shortcut_info.cc
+++ b/chrome/browser/android/shortcut_info.cc
@@ -31,6 +31,10 @@ void ShortcutInfo::UpdateFromManifest(const content::Manifest& manifest) {
if (manifest.display != content::Manifest::DISPLAY_MODE_UNSPECIFIED)
display = manifest.display;
+ // Set the theme color based on the manifest value, if any
+ if (manifest.theme_color != content::Manifest::kInvalidOrMissingThemeColor)
+ theme_color = manifest.theme_color;
mlamouri (slow - plz ping) 2015/07/20 13:03:30 Move that to the end of the method.
Lalit Maganti 2015/07/20 13:15:19 Done.
+
// 'fullscreen' and 'minimal-ui' are not yet supported, fallback to the right
// mode in those cases.
if (manifest.display == content::Manifest::DISPLAY_MODE_FULLSCREEN)
« chrome/browser/android/shortcut_data_fetcher.cc ('K') | « chrome/browser/android/shortcut_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698