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

Unified Diff: chrome/browser/android/shortcut_helper.h

Issue 2199413003: Make WebAPK use "start URL longest path" as the scope if the scope is missing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into webapk_builder_impl2_scope Created 4 years, 4 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_helper.h
diff --git a/chrome/browser/android/shortcut_helper.h b/chrome/browser/android/shortcut_helper.h
index 8f489d358038f65f37b2e4b9dd89cc9022405bcd..c41bba646d2bc503cf17410f3c9e7e43f45803e7 100644
--- a/chrome/browser/android/shortcut_helper.h
+++ b/chrome/browser/android/shortcut_helper.h
@@ -110,6 +110,10 @@ class ShortcutHelper {
// can handle |url|.
static bool IsWebApkInstalled(const GURL& url);
+ // Generates a scope URL based on the passed in |url|. It should be used
+ // when the Web Manifest does not specify a scope URL.
+ static GURL GetScopeFromURL(const GURL& url);
+
private:
ShortcutHelper() = delete;
~ShortcutHelper() = delete;
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java ('k') | chrome/browser/android/shortcut_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698