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

Issue 2471783005: 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/branch-heads/2883
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 link

Patch Set 1 #

Patch Set 2 : Workaround to retrieve |starting_gurl_| #

Total comments: 5

Patch Set 3 : Rebasing #

Patch Set 4 : Documenting differences on M-55 implementation. #

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

Messages

Total messages: 8 (2 generated)
djacobo_
PTAL, already run unit_tests and did some manual testing
4 years, 1 month ago (2016-11-03 17:45:56 UTC) #3
Yusuke Sato
https://codereview.chromium.org/2471783005/diff/20001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2471783005/diff/20001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc#newcode141 chrome/browser/chromeos/arc/arc_navigation_throttle.cc:141: // We must not handle navigations started from the ...
4 years, 1 month ago (2016-11-03 19:57:11 UTC) #4
djacobo_
https://codereview.chromium.org/2471783005/diff/20001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2471783005/diff/20001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc#newcode141 chrome/browser/chromeos/arc/arc_navigation_throttle.cc:141: // We must not handle navigations started from the ...
4 years, 1 month ago (2016-11-03 20:22:01 UTC) #5
Yusuke Sato
https://codereview.chromium.org/2471783005/diff/20001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2471783005/diff/20001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc#newcode172 chrome/browser/chromeos/arc/arc_navigation_throttle.cc:172: GURL ArcNavigationThrottle::GetStartingGURL() const { On 2016/11/03 20:22:01, djacobo wrote: ...
4 years, 1 month ago (2016-11-03 20:27:31 UTC) #6
Yusuke Sato
lgtm, landing PS #4
4 years, 1 month ago (2016-11-03 20:41:38 UTC) #7
Yusuke Sato
4 years, 1 month ago (2016-11-03 21:20:18 UTC) #8

Powered by Google App Engine
This is Rietveld 408576698