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

Issue 2824923002: Suppress WebUSB notifications when appropriate (Closed)

Created:
3 years, 8 months ago by cco3
Modified:
3 years, 7 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Suppress WebUSB notifications when appropriate Currently, a WebUSB notification appears regardless of whether the landing page is already open. This change takes a more refined approach to WebUSB notifications, as outlined below. Managing the notification: - If the active tab is the landing page, don't fire a notification. - If the the landing page becomes featured in the active tab and a notification exists, remove it. When clicking a notification: - If a tab exists with the landing page, activate it. - If a tab does not exist with the landing page, create a new tab and navigate to the landing page. BUG=689128 Review-Url: https://codereview.chromium.org/2824923002 Cr-Commit-Position: refs/heads/master@{#473273} Committed: https://chromium.googlesource.com/chromium/src/+/dca47e28ab2e0f43b8b44874b3905676a3d961ce

Patch Set 1 #

Patch Set 2 : Update commit message #

Patch Set 3 : Add tests #

Patch Set 4 : Reformat #

Patch Set 5 : Assert clicking removes notification #

Total comments: 13

Patch Set 6 : Style update #

Patch Set 7 : Test histograms #

Total comments: 2

Patch Set 8 : Update metrics description #

Patch Set 9 : Get cros tests working #

Patch Set 10 : Use new enums.xml file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -67 lines) Patch
M chrome/browser/chromeos/profiles/profile_helper.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/usb/web_usb_detector.cc View 1 2 3 4 5 7 chunks +79 lines, -18 lines 0 comments Download
M chrome/browser/usb/web_usb_detector_unittest.cc View 1 2 3 4 5 6 7 8 20 chunks +171 lines, -49 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 39 (17 generated)
cco3
I have an issue with my checkout, so I haven't been able to test this ...
3 years, 8 months ago (2017-04-17 23:39:08 UTC) #2
Reilly Grant (use Gerrit)
For the second case I believe you mean, "If the user switches to a tab ...
3 years, 8 months ago (2017-04-18 00:44:02 UTC) #5
cco3
On 2017/04/18 00:44:02, Reilly Grant wrote: > For the second case I believe you mean, ...
3 years, 8 months ago (2017-04-18 16:32:50 UTC) #7
cco3
OK, I got my tree fixed, but now I get a segfault from master (without ...
3 years, 8 months ago (2017-04-18 17:17:37 UTC) #8
Reilly Grant (use Gerrit)
On 2017/04/18 17:17:37, cco3 wrote: > OK, I got my tree fixed, but now I ...
3 years, 8 months ago (2017-04-18 18:23:47 UTC) #9
cco3
OK, I've played around with it and everything works as expected. I'll try to write ...
3 years, 8 months ago (2017-04-19 01:26:09 UTC) #10
cco3
OK Reilly, I'm ready for you to take another look at this.
3 years, 8 months ago (2017-04-26 22:40:22 UTC) #11
Reilly Grant (use Gerrit)
lgtm with nits Thanks for doing this. It turned out to be rather complex but ...
3 years, 7 months ago (2017-04-27 20:25:43 UTC) #12
cco3
https://codereview.chromium.org/2824923002/diff/80001/chrome/browser/usb/web_usb_detector.cc File chrome/browser/usb/web_usb_detector.cc (right): https://codereview.chromium.org/2824923002/diff/80001/chrome/browser/usb/web_usb_detector.cc#newcode68 chrome/browser/usb/web_usb_detector.cc:68: WEBUSB_NOTIFICATION_CLOSED_MANUAL_NAVIGATION, On 2017/04/27 20:25:43, Reilly Grant wrote: > Update ...
3 years, 7 months ago (2017-04-27 21:31:16 UTC) #13
cco3
Hi Mark, could you take a look at our histograms file? Thanks!
3 years, 7 months ago (2017-04-27 21:34:13 UTC) #15
Mark P
histograms.xml lgtm modulo one comment --mark https://codereview.chromium.org/2824923002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2824923002/diff/120001/tools/metrics/histograms/histograms.xml#newcode118271 tools/metrics/histograms/histograms.xml:118271: + <int value="3" ...
3 years, 7 months ago (2017-04-27 23:17:50 UTC) #16
cco3
https://codereview.chromium.org/2824923002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2824923002/diff/120001/tools/metrics/histograms/histograms.xml#newcode118271 tools/metrics/histograms/histograms.xml:118271: + <int value="3" label="Manual navigation"/> On 2017/04/27 23:17:50, Mark ...
3 years, 7 months ago (2017-04-28 02:39:22 UTC) #17
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/2824923002/140001
3 years, 7 months ago (2017-04-28 16:44:44 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/415228)
3 years, 7 months ago (2017-04-28 18:26:55 UTC) #22
cco3
On 2017/04/28 18:26:55, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 7 months ago (2017-04-28 18:43:38 UTC) #23
cco3
Hi Nikita, would you be able to take a look at the chromeos/profiles/ files?
3 years, 7 months ago (2017-05-02 00:19:57 UTC) #25
cco3
Hi xiyuan@, would you be able to look at the files in chrome/browser/chromeos/profiles/?
3 years, 7 months ago (2017-05-19 16:56:47 UTC) #27
xiyuan
c/b/chromeos/profiles lgtm
3 years, 7 months ago (2017-05-19 17:45:49 UTC) #28
cco3
Thanks!
3 years, 7 months ago (2017-05-19 18:10:28 UTC) #29
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/2824923002/160001
3 years, 7 months ago (2017-05-19 18:11:24 UTC) #32
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/2824923002/180001
3 years, 7 months ago (2017-05-19 18:25:59 UTC) #36
commit-bot: I haz the power
3 years, 7 months ago (2017-05-19 19:23:22 UTC) #39
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/dca47e28ab2e0f43b8b44874b390...

Powered by Google App Engine
This is Rietveld 408576698