| Index: chrome/browser/android/webapk/webapk_installer.cc
|
| diff --git a/chrome/browser/android/webapk/webapk_installer.cc b/chrome/browser/android/webapk/webapk_installer.cc
|
| index 645f84220524ed80767ec2c07154aee816358739..d07f5a5029d9298cd953a4db90c1b9ea19f36f9a 100644
|
| --- a/chrome/browser/android/webapk/webapk_installer.cc
|
| +++ b/chrome/browser/android/webapk/webapk_installer.cc
|
| @@ -50,7 +50,9 @@ const int kDownloadTimeoutMs = 20000;
|
| // Returns the scope from |info| if it is specified. Otherwise, returns the
|
| // default scope.
|
| GURL GetScope(const ShortcutInfo& info) {
|
| - return (info.scope.is_valid()) ? info.scope : info.url.GetOrigin();
|
| + return (info.scope.is_valid())
|
| + ? info.scope
|
| + : ShortcutHelper::GetScopeFromURL(info.url);
|
| }
|
|
|
| // Computes a murmur2 hash of |bitmap|'s PNG encoded bytes.
|
|
|