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

Issue 1328663003: [Custom tab]Fix a bug that clicking media notification opens blank tab (Closed)

Created:
5 years, 3 months ago by Ian Wen
Modified:
5 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, mcasas+watch_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Custom tab]Fix a bug that clicking media notification opens blank tab This CL lets Tab#createBringTabToFrontIntent() return null if the given tab id belongs to a custom tab. A "clickable" notion is introduced here to describe notifications that do not carry a content intent. BUG=524855 Committed: https://crrev.com/85d35ae8d57db58d38d31dce1f1b8a9d3b3e005e Cr-Commit-Position: refs/heads/master@{#347768}

Patch Set 1 #

Patch Set 2 : self review #

Total comments: 8

Patch Set 3 : respond to comments #

Total comments: 4

Patch Set 4 : Let notifications do nothing on click #

Total comments: 8

Patch Set 5 : respond to dfalcantara's comments #

Total comments: 6

Patch Set 6 : respond to Mounir's comments #

Total comments: 2

Patch Set 7 : comments + rebase #

Total comments: 1

Patch Set 8 : final touch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -13 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/media/MediaCaptureNotificationService.java View 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java View 1 2 3 4 5 6 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 3 4 5 6 7 3 chunks +15 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 29 (4 generated)
Ian Wen
ptal. I will create another patch for Web RTC.
5 years, 3 months ago (2015-09-02 21:48:58 UTC) #2
gone
https://codereview.chromium.org/1328663003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java File chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java (right): https://codereview.chromium.org/1328663003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java#newcode44 chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java:44: * Whether the media belongs to a custom tab. ...
5 years, 3 months ago (2015-09-02 21:55:18 UTC) #3
Ian Wen
All done. Thanks for the quick review! https://codereview.chromium.org/1328663003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java File chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java (right): https://codereview.chromium.org/1328663003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java#newcode44 chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java:44: * Whether ...
5 years, 3 months ago (2015-09-02 22:00:15 UTC) #4
gone
Re-nitting myself. Going to defer to Mounir or avayvod@ to give you the l-g-t-m. https://codereview.chromium.org/1328663003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java ...
5 years, 3 months ago (2015-09-02 22:04:17 UTC) #6
whywhat
This doesn't seem to be what is suggested in the bug as I understand? We ...
5 years, 3 months ago (2015-09-02 22:33:21 UTC) #7
Ian Wen
The decision made in last custom tab's meeting was that we first try to bring ...
5 years, 3 months ago (2015-09-03 01:25:30 UTC) #8
mlamouri (slow - plz ping)
On 2015/09/03 at 01:25:30, ianwen wrote: > The decision made in last custom tab's meeting ...
5 years, 3 months ago (2015-09-03 13:38:36 UTC) #9
Ian Wen
With the current implementation, a blank chrome ntp will be shown when the user clicks ...
5 years, 3 months ago (2015-09-03 17:00:54 UTC) #10
mlamouri (slow - plz ping)
On 2015/09/03 at 17:00:54, ianwen wrote: > With the current implementation, a blank chrome ntp ...
5 years, 3 months ago (2015-09-03 17:54:43 UTC) #11
mlamouri (slow - plz ping)
On 2015/09/03 at 17:54:43, Mounir Lamouri wrote: > On 2015/09/03 at 17:00:54, ianwen wrote: > ...
5 years, 3 months ago (2015-09-03 18:01:54 UTC) #12
gone
On 2015/09/03 18:01:54, Mounir Lamouri wrote: > On 2015/09/03 at 17:54:43, Mounir Lamouri wrote: > ...
5 years, 3 months ago (2015-09-03 18:20:09 UTC) #13
mlamouri (slow - plz ping)
On 2015/09/03 at 18:20:09, dfalcantara wrote: > On 2015/09/03 18:01:54, Mounir Lamouri wrote: > > ...
5 years, 3 months ago (2015-09-03 21:19:32 UTC) #14
Ian Wen
I'm fine with what Mounir proposed (it's actually my original plan). A new patchset is ...
5 years, 3 months ago (2015-09-03 21:21:39 UTC) #15
Ian Wen
ptal the new patchset. :)
5 years, 3 months ago (2015-09-03 23:52:35 UTC) #16
gone
https://codereview.chromium.org/1328663003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java File chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java (right): https://codereview.chromium.org/1328663003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java#newcode339 chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java:339: * intent. nit :capitalize Intent and URL everywhere. How ...
5 years, 3 months ago (2015-09-04 00:03:27 UTC) #17
Ian Wen
https://codereview.chromium.org/1328663003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java File chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java (right): https://codereview.chromium.org/1328663003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java#newcode339 chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java:339: * intent. On 2015/09/04 00:03:27, dfalcantara wrote: > nit ...
5 years, 3 months ago (2015-09-04 06:28:43 UTC) #18
mlamouri (slow - plz ping)
https://codereview.chromium.org/1328663003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java File chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java (right): https://codereview.chromium.org/1328663003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java#newcode339 chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java:339: private String getStatusText(boolean isClickable) { Hmm, I actually wanted ...
5 years, 3 months ago (2015-09-04 10:36:44 UTC) #19
Ian Wen
Thanks for the comments! https://codereview.chromium.org/1328663003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java File chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java (right): https://codereview.chromium.org/1328663003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java#newcode339 chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java:339: private String getStatusText(boolean isClickable) { ...
5 years, 3 months ago (2015-09-04 19:17:14 UTC) #20
mlamouri (slow - plz ping)
lgtm with comments applied. Thanks for taking the time to do the right thing here! ...
5 years, 3 months ago (2015-09-06 12:45:18 UTC) #21
Ian Wen
Ping dfalcantara@? :) https://codereview.chromium.org/1328663003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java File chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java (right): https://codereview.chromium.org/1328663003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java#newcode397 chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java:397: Intent chromeIntent = Tab.createBringTabToFrontIntent(tabId); On 2015/09/06 ...
5 years, 3 months ago (2015-09-08 16:44:02 UTC) #22
gone
https://codereview.chromium.org/1328663003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java File chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java (right): https://codereview.chromium.org/1328663003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java#newcode2851 chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java:2851: // Iterate through all active custom tabs and check ...
5 years, 3 months ago (2015-09-08 17:51:29 UTC) #23
gone
(but lgtm otherwise)
5 years, 3 months ago (2015-09-08 17:51:44 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1328663003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1328663003/140001
5 years, 3 months ago (2015-09-08 18:47:18 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 3 months ago (2015-09-08 19:34:32 UTC) #28
commit-bot: I haz the power
5 years, 3 months ago (2015-09-08 19:35:21 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/85d35ae8d57db58d38d31dce1f1b8a9d3b3e005e
Cr-Commit-Position: refs/heads/master@{#347768}

Powered by Google App Engine
This is Rietveld 408576698