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

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

Issue 2070433002: Use scope defined in Web Manifest when adding page to homescreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into webapk_scope Created 4 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
« no previous file with comments | « chrome/browser/android/shortcut_info.h ('k') | content/common/manifest_manager_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/shortcut_info.cc
diff --git a/chrome/browser/android/shortcut_info.cc b/chrome/browser/android/shortcut_info.cc
index 035ace635f16cf8753d901a9fcaae8a4daccd34b..9371a8a0c79f12163ed9dff0760f5903d827a7e6 100644
--- a/chrome/browser/android/shortcut_info.cc
+++ b/chrome/browser/android/shortcut_info.cc
@@ -35,6 +35,9 @@ void ShortcutInfo::UpdateFromManifest(const content::Manifest& manifest) {
if (manifest.start_url.is_valid())
url = manifest.start_url;
+ if (manifest.scope.is_valid())
+ scope = manifest.scope;
+
// Set the display based on the manifest value, if any.
if (manifest.display != blink::WebDisplayModeUndefined)
display = manifest.display;
« no previous file with comments | « chrome/browser/android/shortcut_info.h ('k') | content/common/manifest_manager_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698