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

Issue 2090853002: Fix an issue that pdf is not auto-opened after typing url in omnibox (Closed)

Created:
4 years, 6 months ago by qinmin
Modified:
4 years, 6 months ago
Reviewers:
Ted C
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix an issue that pdf is not auto-opened after typing url in omnibox If a pdf download is triggered from omnibox, we don't auto-open the file. This is because the download item doesn't carry the user gesture flag. However, in most cases the url is typed or the navigation is triggerd by user. This CL fixes the issue by identifying these downloads that are initiated by user. BUG=622378 Committed: https://crrev.com/a06924c6c0170d0007966d0d86a3070a6ca0e717 Cr-Commit-Position: refs/heads/master@{#401672}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M chrome/browser/android/download/download_controller.cc View 4 chunks +13 lines, -2 lines 2 comments Download

Messages

Total messages: 9 (3 generated)
qinmin
PTAL
4 years, 6 months ago (2016-06-22 23:52:15 UTC) #2
Ted C
lgtm https://codereview.chromium.org/2090853002/diff/1/chrome/browser/android/download/download_controller.cc File chrome/browser/android/download/download_controller.cc (right): https://codereview.chromium.org/2090853002/diff/1/chrome/browser/android/download/download_controller.cc#newcode330 chrome/browser/android/download/download_controller.cc:330: base_transition == ui::PAGE_TRANSITION_TYPED || could we use !PageTransitionIsWebTriggerable ...
4 years, 6 months ago (2016-06-22 23:58:03 UTC) #3
qinmin
https://codereview.chromium.org/2090853002/diff/1/chrome/browser/android/download/download_controller.cc File chrome/browser/android/download/download_controller.cc (right): https://codereview.chromium.org/2090853002/diff/1/chrome/browser/android/download/download_controller.cc#newcode330 chrome/browser/android/download/download_controller.cc:330: base_transition == ui::PAGE_TRANSITION_TYPED || On 2016/06/22 23:58:03, Ted C ...
4 years, 6 months ago (2016-06-23 18:20:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2090853002/1
4 years, 6 months ago (2016-06-23 18:21:06 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-23 19:08:47 UTC) #7
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 19:11:11 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/a06924c6c0170d0007966d0d86a3070a6ca0e717
Cr-Commit-Position: refs/heads/master@{#401672}

Powered by Google App Engine
This is Rietveld 408576698