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

Issue 2458073003: Modifies how Arc's throttle handles redirections (Closed)

Created:
4 years, 1 month ago by djacobo_
Modified:
4 years, 1 month ago
Reviewers:
Yusuke Sato
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

Modifies how Arc's throttle handles redirections Since we want to handle navigations going from https to http we need to enforce having a Referrer(), we call it |starting_gurl_|. This will allow us to know where the navigation started and fire up the intent picker. This also modifies the way we treat redirections within the same navigation throttle object. Since we now enforce having a starting GURL we are not discarding as many throttles via ShouldOverrideUrlLoading(), which previously discarded a throttle just because it didn't contain a referrer. BUG=654941 TEST=Check the repro info on the bug, also manually tested with youtube links. Committed: https://crrev.com/04a713e72e35274ba7e3f219dbc60c670208b120 Cr-Commit-Position: refs/heads/master@{#428873}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Removing redirected_to_arc_ flag #

Total comments: 5

Patch Set 3 : Improving the WillRedirectRequest() code comments #

Total comments: 4

Patch Set 4 : Fixing unit tests #

Patch Set 5 : Rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -24 lines) Patch
M chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h View 1 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc View 1 2 3 4 6 chunks +49 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle_unittest.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (25 generated)
djacobo_
PTAL
4 years, 1 month ago (2016-10-28 23:55:35 UTC) #5
Yusuke Sato
https://codereview.chromium.org/2458073003/diff/1/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2458073003/diff/1/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc#newcode56 chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc:56: // Check the scheme for both |previous_url| and |current_url| ...
4 years, 1 month ago (2016-10-29 00:39:57 UTC) #8
djacobo_
https://codereview.chromium.org/2458073003/diff/1/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2458073003/diff/1/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc#newcode56 chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc:56: // Check the scheme for both |previous_url| and |current_url| ...
4 years, 1 month ago (2016-10-31 20:14:44 UTC) #11
Yusuke Sato
https://codereview.chromium.org/2458073003/diff/20001/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2458073003/diff/20001/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc#newcode162 chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc:162: return content::NavigationThrottle::PROCEED; Thanks for removing the member variable. However, ...
4 years, 1 month ago (2016-10-31 20:26:51 UTC) #12
djacobo_
https://codereview.chromium.org/2458073003/diff/20001/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2458073003/diff/20001/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc#newcode162 chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc:162: return content::NavigationThrottle::PROCEED; On 2016/10/31 20:26:51, Yusuke Sato wrote: > ...
4 years, 1 month ago (2016-10-31 21:12:24 UTC) #17
Yusuke Sato
thanks, lgtm with unittest fixes. https://codereview.chromium.org/2458073003/diff/40001/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2458073003/diff/40001/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc#newcode170 chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc:170: // 1) Was caught ...
4 years, 1 month ago (2016-10-31 21:27:09 UTC) #18
djacobo_
Built and executed unit tests locally (courage--) https://codereview.chromium.org/2458073003/diff/40001/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2458073003/diff/40001/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc#newcode170 chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc:170: // 1) ...
4 years, 1 month ago (2016-10-31 21:56:38 UTC) #23
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/2458073003/60001
4 years, 1 month ago (2016-10-31 22:51:13 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/293635)
4 years, 1 month ago (2016-10-31 22:58:26 UTC) #30
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/2458073003/80001
4 years, 1 month ago (2016-10-31 23:07:18 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-10-31 23:58:55 UTC) #35
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 00:02:53 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/04a713e72e35274ba7e3f219dbc60c670208b120
Cr-Commit-Position: refs/heads/master@{#428873}

Powered by Google App Engine
This is Rietveld 408576698