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

Issue 2432013002: Improve intent: URI handling (Closed)

Created:
4 years, 2 months ago by Yusuke Sato
Modified:
4 years, 1 month ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), davemoore+watch_chromium.org, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yusukes+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve intent: URI handling This CL adds |fallback_url| field to the IntentHandlerInfo struct so that RequestUrlHandlerList() can return such a URL when it is called with intent:. This CL also modifies our external protocol handler to let it handle the new field properly. For example, if RequestUrlHandlerList() is called with "intent://xxx/#Intent;package=com.xyz;S.browser_fallback_url=http://abc.org;end" and the package com.xyz is not installed, the API returns "http://abc.org", and the new external protocol handler code opens the URL in a Chrome tab. Or, if the URL is without a browser fallback URL, "intent://xxx/#Intent;package=com.xyz;end", and the package com.xyz is not installed, the API returns "market://details?id=com.xyz" so the user can open the app installation page if they want. BUG=654944 TEST=try Committed: https://crrev.com/b7ee04cc50b5f176d9033814e5d81565c4cf4d50 Cr-Commit-Position: refs/heads/master@{#427409}

Patch Set 1 #

Patch Set 2 : tests added #

Patch Set 3 : review #

Total comments: 8

Patch Set 4 : address comments #

Total comments: 2

Patch Set 5 : comment fix #

Patch Set 6 : rebase, fix one TODO #

Patch Set 7 : rebase onto Luis' directory reorganize CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+627 lines, -17 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.h View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc View 1 2 3 4 5 6 7 chunks +170 lines, -16 lines 0 comments Download
A chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog_unittest.cc View 1 2 3 4 5 6 1 chunk +434 lines, -0 lines 0 comments Download
M components/arc/common/intent_helper.mojom View 1 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 46 (33 generated)
Yusuke Sato
Improve intent: URI handling This CL adds |fallback_url| field to the IntentHandlerInfo struct so that ...
4 years, 2 months ago (2016-10-21 22:19:16 UTC) #11
Yusuke Sato
PTAL
4 years, 2 months ago (2016-10-21 22:37:29 UTC) #14
djacobo_
Only a question and a couple of nits, thanks for the extensive amount of test ...
4 years, 1 month ago (2016-10-24 18:17:36 UTC) #17
Yusuke Sato
Please take another look. https://codereview.chromium.org/2432013002/diff/40001/chrome/browser/chromeos/arc/arc_external_protocol_dialog.cc File chrome/browser/chromeos/arc/arc_external_protocol_dialog.cc (right): https://codereview.chromium.org/2432013002/diff/40001/chrome/browser/chromeos/arc/arc_external_protocol_dialog.cc#newcode86 chrome/browser/chromeos/arc/arc_external_protocol_dialog.cc:86: url, content::Referrer(), WindowOpenDisposition::CURRENT_TAB, On 2016/10/24 ...
4 years, 1 month ago (2016-10-24 19:30:11 UTC) #21
djacobo_
lgtm https://codereview.chromium.org/2432013002/diff/40001/chrome/browser/chromeos/arc/arc_external_protocol_dialog.cc File chrome/browser/chromeos/arc/arc_external_protocol_dialog.cc (right): https://codereview.chromium.org/2432013002/diff/40001/chrome/browser/chromeos/arc/arc_external_protocol_dialog.cc#newcode86 chrome/browser/chromeos/arc/arc_external_protocol_dialog.cc:86: url, content::Referrer(), WindowOpenDisposition::CURRENT_TAB, On 2016/10/24 19:30:11, Yusuke Sato ...
4 years, 1 month ago (2016-10-24 20:23:47 UTC) #23
Yusuke Sato
Thanks David. Ricky, kinaba, PTAL
4 years, 1 month ago (2016-10-24 20:57:17 UTC) #24
rickyz (no longer on Chrome)
mojom lgtm - thanks for the extensive tests!
4 years, 1 month ago (2016-10-24 21:27:24 UTC) #25
kinaba
lgtm! sorry for taking long for the review
4 years, 1 month ago (2016-10-25 05:12:53 UTC) #32
Yusuke Sato
Thanks all! +xiyuan, c/b/chromeos/ owner. Please have a look at the directory. I'm adding unit ...
4 years, 1 month ago (2016-10-25 06:19:20 UTC) #36
xiyuan
lgtm
4 years, 1 month ago (2016-10-25 15:05:30 UTC) #39
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/2432013002/120001
4 years, 1 month ago (2016-10-25 17:54:39 UTC) #42
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-10-25 18:00:00 UTC) #44
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 18:16:22 UTC) #46
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b7ee04cc50b5f176d9033814e5d81565c4cf4d50
Cr-Commit-Position: refs/heads/master@{#427409}

Powered by Google App Engine
This is Rietveld 408576698