[Webapp] Don't do any escaping during default scope computation

This CL fixes the URL formatting in ShortcutHelper#getScopeFromUrl().
Previously getScopeFromUrl() was decoding then re-encoding the path,
which does not round-trip correctly as it encodes characters like
'='.

This bug was causing the WebAPK to think that the start URL
was outside of the scope generated by
ShortcutHelper#getScopeFromUrl() and to launch a CCT

BUG=840271
TEST=ShortcutHelperTest

Change-Id: Ibf63a8b13717c33ce6e8f113d58192a964e53d2d
Reviewed-on: https://chromium-review.googlesource.com/1053491
Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org>
Reviewed-by: Bernhard Bauer <bauerb@chromium.org>
Reviewed-by: Matt Giuca <mgiuca@chromium.org>
Cr-Commit-Position: refs/heads/master@{#560217}
2 files changed