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

Issue 2540013004: Allow an external URL with FROM_API qualifier to be forwarded to ARC (Closed)

Created:
4 years ago by Yusuke Sato
Modified:
4 years ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow an external URL with FROM_API qualifier to be forwarded to ARC for better AppAuth compatibility. In a highly unusual situation, allowing FROM_API could trigger infinite Chrome tab creation. This CL also adds code for detecting and stopping the loop, just in case. End users will almost never see the safety checks to kick in, though. BUG=670465 TEST=unit_tests passed, also manually confirmed that when |always_ask_user| is true, "Always" preference set by the user is ignored. Committed: https://crrev.com/0c7e06f5b85f0304bd62f61a9b2ae391e97f3183 Cr-Commit-Position: refs/heads/master@{#436017}

Patch Set 1 #

Patch Set 2 : review #

Total comments: 6

Patch Set 3 : address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -64 lines) Patch
M chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc View 1 2 17 chunks +94 lines, -18 lines 0 comments Download
M chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog_unittest.cc View 1 21 chunks +75 lines, -26 lines 0 comments Download
M components/arc/intent_helper/page_transition_util.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M components/arc/intent_helper/page_transition_util.cc View 1 2 chunks +3 lines, -13 lines 0 comments Download
M components/arc/intent_helper/page_transition_util_unittest.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (19 generated)
Yusuke Sato
PTAL. This is for b/33208965
4 years ago (2016-12-01 22:33:37 UTC) #9
djacobo
LGTM w/ some comments. https://codereview.chromium.org/2540013004/diff/20001/chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc File chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc (right): https://codereview.chromium.org/2540013004/diff/20001/chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc#newcode404 chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc:404: // this heuristics. nit: these* ...
4 years ago (2016-12-01 23:47:23 UTC) #12
Yusuke Sato
https://codereview.chromium.org/2540013004/diff/20001/chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc File chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc (right): https://codereview.chromium.org/2540013004/diff/20001/chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc#newcode419 chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc:419: return url.scheme() != last_url.scheme(); On 2016/12/01 23:47:23, djacobo wrote: ...
4 years ago (2016-12-02 00:24:17 UTC) #13
Yusuke Sato
https://codereview.chromium.org/2540013004/diff/20001/chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc File chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc (right): https://codereview.chromium.org/2540013004/diff/20001/chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc#newcode404 chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc:404: // this heuristics. On 2016/12/01 23:47:23, djacobo wrote: > ...
4 years ago (2016-12-02 00:44:38 UTC) #15
Yusuke Sato
Luis, cold you do an owner review?
4 years ago (2016-12-02 19:13:45 UTC) #19
Luis Héctor Chávez
lgtm
4 years ago (2016-12-02 19:19:24 UTC) #20
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/2540013004/40001
4 years ago (2016-12-02 20:14:36 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-02 21:13:04 UTC) #26
commit-bot: I haz the power
4 years ago (2016-12-02 21:16:39 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0c7e06f5b85f0304bd62f61a9b2ae391e97f3183
Cr-Commit-Position: refs/heads/master@{#436017}

Powered by Google App Engine
This is Rietveld 408576698