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

Issue 2165193002: [arc-intents] Adjust link-click detection code. (Closed)

Created:
4 years, 5 months ago by Ben Kwa
Modified:
4 years, 5 months 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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[arc-intents] Adjust link-click detection code. Use the page transition, which seems more reliable, rather than the HasUserGesture method, to detect whether a given navigation event was spawned by the user clicking on a link. BUG=630072 Committed: https://crrev.com/ef206ad2f2bd182205b4adb5580c00e7967c4fd8 Cr-Commit-Position: refs/heads/master@{#407256}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix typo #

Total comments: 2

Patch Set 3 : Properly mask page transition; add braces. #

Patch Set 4 : Use page transition API #

Total comments: 2

Patch Set 5 : Exclude qualified page transitions. #

Total comments: 4

Patch Set 6 : Minor cleanup. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -1 line) Patch
M chrome/browser/chromeos/arc/arc_navigation_throttle.cc View 1 2 3 4 5 2 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 34 (20 generated)
Ben Kwa
4 years, 5 months ago (2016-07-21 02:16:26 UTC) #3
Luis Héctor Chávez
yusukes@ is ooo, so i'll take over for him. https://codereview.chromium.org/2165193002/diff/1/chrome/browser/chromeos/arc/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2165193002/diff/1/chrome/browser/chromeos/arc/arc_navigation_throttle.cc#newcode70 chrome/browser/chromeos/arc/arc_navigation_throttle.cc:70: ...
4 years, 5 months ago (2016-07-21 15:51:09 UTC) #5
Ben Kwa
https://codereview.chromium.org/2165193002/diff/1/chrome/browser/chromeos/arc/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2165193002/diff/1/chrome/browser/chromeos/arc/arc_navigation_throttle.cc#newcode70 chrome/browser/chromeos/arc/arc_navigation_throttle.cc:70: On 2016/07/21 15:51:09, Luis Héctor Chávez wrote: > This ...
4 years, 5 months ago (2016-07-21 16:33:48 UTC) #8
Luis Héctor Chávez
Can you update the bug? It doesn't seem to be a valid crbug.com bug. https://codereview.chromium.org/2165193002/diff/20001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc ...
4 years, 5 months ago (2016-07-21 18:08:36 UTC) #11
Ben Kwa
https://codereview.chromium.org/2165193002/diff/20001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2165193002/diff/20001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc#newcode67 chrome/browser/chromeos/arc/arc_navigation_throttle.cc:67: if (navigation_handle()->GetPageTransition() != ui::PAGE_TRANSITION_LINK) On 2016/07/21 18:08:36, Luis Héctor ...
4 years, 5 months ago (2016-07-21 23:07:02 UTC) #15
djacobo_
lgtm
4 years, 5 months ago (2016-07-22 01:13:13 UTC) #18
Ben Kwa
Changed again, this time to use the page transition API which I just found. PTAL.
4 years, 5 months ago (2016-07-22 13:56:24 UTC) #21
Luis Héctor Chávez
https://codereview.chromium.org/2165193002/diff/60001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2165193002/diff/60001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc#newcode69 chrome/browser/chromeos/arc/arc_navigation_throttle.cc:69: // If this navigation event wasn't spawned by the ...
4 years, 5 months ago (2016-07-22 15:35:34 UTC) #24
Ben Kwa
Ok, third time lucky (maybe). TLDR is that we need to look at both the ...
4 years, 5 months ago (2016-07-22 17:58:06 UTC) #25
Luis Héctor Chávez
oh this looks much better :) lgtm https://codereview.chromium.org/2165193002/diff/80001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2165193002/diff/80001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc#newcode80 chrome/browser/chromeos/arc/arc_navigation_throttle.cc:80: // b/29250054). ...
4 years, 5 months ago (2016-07-22 19:08:18 UTC) #26
Ben Kwa
Thanks! https://codereview.chromium.org/2165193002/diff/80001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc File chrome/browser/chromeos/arc/arc_navigation_throttle.cc (right): https://codereview.chromium.org/2165193002/diff/80001/chrome/browser/chromeos/arc/arc_navigation_throttle.cc#newcode80 chrome/browser/chromeos/arc/arc_navigation_throttle.cc:80: // b/29250054). On 2016/07/22 19:08:18, Luis Héctor Chávez ...
4 years, 5 months ago (2016-07-22 20:16:43 UTC) #27
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/2165193002/100001
4 years, 5 months ago (2016-07-22 20:17:32 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-22 20:49:46 UTC) #32
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 20:51:01 UTC) #34
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ef206ad2f2bd182205b4adb5580c00e7967c4fd8
Cr-Commit-Position: refs/heads/master@{#407256}

Powered by Google App Engine
This is Rietveld 408576698