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

Issue 2147543003: Check if there is a url before checking to launch activity inside CCT (Closed)

Created:
4 years, 5 months ago by Yusuf
Modified:
4 years, 4 months ago
Reviewers:
Ian Wen, Maria, nyquist
CC:
chromium-reviews, lizeb+watch-custom-tabs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check if there is a url before checking to launch activity inside CCT In some cases, on a user click in a page, we might get an intent with a null data string. In these cases we are crashing while checking whether the uri has an accepted scheme. This adds an early return to avoid the crash. BUG=627503 Committed: https://crrev.com/4128ae6b96c70dc721b4ae5ce9d7707169e3b348 Cr-Commit-Position: refs/heads/master@{#410769}

Patch Set 1 #

Total comments: 2

Patch Set 2 : ianwen@'s comments #

Patch Set 3 : mariakhomenko@'s comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (5 generated)
Yusuf
One thing I am not sure about: Should we check for empty string as well? ...
4 years, 5 months ago (2016-07-12 21:41:38 UTC) #2
Ian Wen
https://codereview.chromium.org/2147543003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java (right): https://codereview.chromium.org/2147543003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java#newcode58 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java:58: if (intent.getDataString() == null) return false; Shall we change ...
4 years, 5 months ago (2016-07-14 17:31:34 UTC) #3
Yusuf
nyquist@ for externalnav/ https://codereview.chromium.org/2147543003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java (right): https://codereview.chromium.org/2147543003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java#newcode58 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java:58: if (intent.getDataString() == null) return false; ...
4 years, 5 months ago (2016-07-14 18:23:50 UTC) #5
Ian Wen
Add Maria to the CL. I wonder what it means that data string of an ...
4 years, 5 months ago (2016-07-14 18:48:07 UTC) #7
Ian Wen
Add Maria to the CL. I wonder what it means that data string of an ...
4 years, 5 months ago (2016-07-14 18:48:09 UTC) #8
nyquist
Happy to wait for Maria on this one and rubberstamp at the end. Please ping ...
4 years, 5 months ago (2016-07-15 21:19:15 UTC) #9
Maria
On 2016/07/15 21:19:15, nyquist wrote: > Happy to wait for Maria on this one and ...
4 years, 5 months ago (2016-07-18 17:40:21 UTC) #10
Yusuf
On 2016/07/18 17:40:21, Maria wrote: > On 2016/07/15 21:19:15, nyquist wrote: > > Happy to ...
4 years, 4 months ago (2016-08-08 23:37:47 UTC) #11
Maria
lgtm
4 years, 4 months ago (2016-08-09 17:40:43 UTC) #12
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/2147543003/40001
4 years, 4 months ago (2016-08-09 19:04:18 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-09 19:44:48 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 19:46:33 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4128ae6b96c70dc721b4ae5ce9d7707169e3b348
Cr-Commit-Position: refs/heads/master@{#410769}

Powered by Google App Engine
This is Rietveld 408576698