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

Issue 2864613002: Open the current URL if a WebAPK is opened from the context menu. (Closed)

Created:
3 years, 7 months ago by dominickn
Modified:
3 years, 7 months ago
Reviewers:
pkotwicz, gone
CC:
chromium-reviews, agrieve+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Open the current URL if a WebAPK is opened from the context menu. Currently, when a WebAPK is installed, Chrome displays "Open <appname>" in the context menu in place of "Add to home screen". When the user taps the link, the WebAPK is launched to its start_url. This may differ from the current URL that the user is on. This CL explicitly sets the URL to be opened to the current page URL. For example, if the user has installed mobile.twitter.com as a WebAPK, then navigates to mobile.twitter.com/username, tapping the menu item will open the Twitter WebAPK at the username's page rather than Twitter's start_url. BUG=699265 Review-Url: https://codereview.chromium.org/2864613002 Cr-Commit-Position: refs/heads/master@{#469908} Committed: https://chromium.googlesource.com/chromium/src/+/bb9cdc06b446bad7a85a602c26098a687bffd911

Patch Set 1 #

Patch Set 2 : Less redundant null checking #

Total comments: 2

Patch Set 3 : Use WebApkNavigationClient #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 2 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (17 generated)
dominickn
PTAL, thanks! Peter: sanity check for WebAPKs. Let's get this fix in now since it's ...
3 years, 7 months ago (2017-05-05 06:34:54 UTC) #4
gone
lgtm
3 years, 7 months ago (2017-05-05 17:28:04 UTC) #11
pkotwicz
LGTM with nit https://codereview.chromium.org/2864613002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java (right): https://codereview.chromium.org/2864613002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java#newcode1911 chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java:1911: launchIntent.setData(Uri.parse(currentTab.getUrl())); We might as well use ...
3 years, 7 months ago (2017-05-05 22:02:18 UTC) #12
dominickn
Thanks! https://codereview.chromium.org/2864613002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java (right): https://codereview.chromium.org/2864613002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java#newcode1911 chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java:1911: launchIntent.setData(Uri.parse(currentTab.getUrl())); On 2017/05/05 22:02:17, pkotwicz wrote: > We ...
3 years, 7 months ago (2017-05-08 05:10:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2864613002/40001
3 years, 7 months ago (2017-05-08 05:10:41 UTC) #20
commit-bot: I haz the power
3 years, 7 months ago (2017-05-08 05:15:39 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/bb9cdc06b446bad7a85a602c2609...

Powered by Google App Engine
This is Rietveld 408576698