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

Issue 60353008: Mac global keybindings (Closed)

Created:
7 years, 1 month ago by Boris Smus
Modified:
7 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Mark Mentovai
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

Mac-specific implementation of the GlobalShortcutListener class that listens for global shortcuts. Handles basic keyboard intercepting and forwards its output to the base class for processing. Adds two things: 1. Intercepts media keys. Uses an event tap for intercepting media keys (PlayPause, NextTrack, PreviousTrack). 2. Binds keyboard shortcuts (hot keys). Carbon RegisterEventHotKey API for binding to non-media key global hot keys (eg. Command-Shift-1). Also added Mac tests. BUG=302437 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240536

Patch Set 1 #

Total comments: 14

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 106

Patch Set 6 : #

Total comments: 26

Patch Set 7 : #

Total comments: 14

Patch Set 8 : #

Total comments: 36

Patch Set 9 : #

Total comments: 18

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Total comments: 4

Patch Set 14 : #

Total comments: 36

Patch Set 15 : #

Total comments: 4

Patch Set 16 : #

Total comments: 41

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : #

Total comments: 1

Patch Set 20 : #

Total comments: 51

Patch Set 21 : #

Total comments: 16

Patch Set 22 : #

Patch Set 23 : #

Patch Set 24 : #

Total comments: 24

Patch Set 25 : #

Total comments: 1

Patch Set 26 : #

Patch Set 27 : Running try servers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+517 lines, -83 lines) Patch
M chrome/browser/extensions/api/commands/command_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_commands_global_registry_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 6 chunks +57 lines, -3 lines 0 comments Download
M chrome/browser/extensions/global_shortcut_listener_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +68 lines, -4 lines 0 comments Download
D chrome/browser/extensions/global_shortcut_listener_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +0 lines, -75 lines 0 comments Download
A chrome/browser/extensions/global_shortcut_listener_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +384 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 71 (0 generated)
smus
Added missing files.
7 years, 1 month ago (2013-11-06 19:06:39 UTC) #1
Finnur
In general, I like very much what I am seeing. I can't vouch for the ...
7 years, 1 month ago (2013-11-07 10:33:07 UTC) #2
smus
New mac implementation uses RegisterEventHotKey for regular key bindings, and also has an event tap ...
7 years, 1 month ago (2013-11-16 00:21:43 UTC) #3
Finnur
Overall, with the caveat of my limited Mac experience, I think the approach is promising ...
7 years, 1 month ago (2013-11-18 11:55:57 UTC) #4
Finnur
Also, consider the tests that have been (or are being) added for this feature along ...
7 years, 1 month ago (2013-11-18 12:01:22 UTC) #5
Robert Sesek
not lgtm. Please write a more substantial CL description and add a BUG=. https://codereview.chromium.org/60353008/diff/210001/chrome/browser/extensions/global_shortcut_listener_mac.h File ...
7 years, 1 month ago (2013-11-18 15:25:02 UTC) #6
Robert Sesek
https://codereview.chromium.org/60353008/diff/210001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/210001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode131 chrome/browser/extensions/global_shortcut_listener_mac.mm:131: eventTap_ = CGEventTapCreate(kCGSessionEventTap, On 2013/11/18 15:25:03, rsesek wrote: > ...
7 years, 1 month ago (2013-11-18 18:36:20 UTC) #7
smus
PTAL. https://codereview.chromium.org/60353008/diff/210001/chrome/browser/extensions/global_shortcut_listener_mac.h File chrome/browser/extensions/global_shortcut_listener_mac.h (right): https://codereview.chromium.org/60353008/diff/210001/chrome/browser/extensions/global_shortcut_listener_mac.h#newcode10 chrome/browser/extensions/global_shortcut_listener_mac.h:10: #include <set> On 2013/11/18 15:25:03, rsesek wrote: > ...
7 years, 1 month ago (2013-11-18 23:13:40 UTC) #8
Finnur
https://codereview.chromium.org/60353008/diff/210001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/210001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode211 chrome/browser/extensions/global_shortcut_listener_mac.mm:211: GlobalShortcutListenerMac::~GlobalShortcutListenerMac() { Yes, we'll get calls to Unregister before ...
7 years, 1 month ago (2013-11-19 13:10:05 UTC) #9
Robert Sesek
https://codereview.chromium.org/60353008/diff/210001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/210001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode56 chrome/browser/extensions/global_shortcut_listener_mac.mm:56: NSEvent* nsEvent = [NSEvent eventWithCGEvent:event]; On 2013/11/18 23:13:41, smus ...
7 years, 1 month ago (2013-11-19 18:34:58 UTC) #10
smus
Another round. https://codereview.chromium.org/60353008/diff/210001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/210001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode56 chrome/browser/extensions/global_shortcut_listener_mac.mm:56: NSEvent* nsEvent = [NSEvent eventWithCGEvent:event]; On 2013/11/19 ...
7 years, 1 month ago (2013-11-20 04:28:50 UTC) #11
Finnur
I believe this addresses my concerns, so once rsesek is happy I'm happy. LGTM In ...
7 years, 1 month ago (2013-11-20 12:33:54 UTC) #12
Robert Sesek
https://codereview.chromium.org/60353008/diff/210001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/210001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode56 chrome/browser/extensions/global_shortcut_listener_mac.mm:56: NSEvent* nsEvent = [NSEvent eventWithCGEvent:event]; On 2013/11/20 04:28:51, smus ...
7 years, 1 month ago (2013-11-20 16:23:56 UTC) #13
smus
Ok, some big late-game changes: - Eliminated event tap thread. - Folded Obj-C class into ...
7 years, 1 month ago (2013-11-20 17:50:53 UTC) #14
Robert Sesek
Architecturally, this is looking much better. This round is mostly style points. https://codereview.chromium.org/60353008/diff/430001/chrome/browser/extensions/global_shortcut_listener_mac.h File chrome/browser/extensions/global_shortcut_listener_mac.h ...
7 years, 1 month ago (2013-11-21 16:29:55 UTC) #15
smus
PTAL https://codereview.chromium.org/60353008/diff/430001/chrome/browser/extensions/global_shortcut_listener_mac.h File chrome/browser/extensions/global_shortcut_listener_mac.h (right): https://codereview.chromium.org/60353008/diff/430001/chrome/browser/extensions/global_shortcut_listener_mac.h#newcode10 chrome/browser/extensions/global_shortcut_listener_mac.h:10: #include <Carbon/Carbon.h> On 2013/11/21 16:29:56, rsesek wrote: > ...
7 years, 1 month ago (2013-11-22 02:06:37 UTC) #16
zhchbin
https://codereview.chromium.org/60353008/diff/490001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/490001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode255 chrome/browser/extensions/global_shortcut_listener_mac.mm:255: // TODO(smus): switch over to the cross-platform version of ...
7 years, 1 month ago (2013-11-22 08:08:15 UTC) #17
Robert Sesek
This should probably have some tests, too, right? https://codereview.chromium.org/60353008/diff/430001/chrome/browser/extensions/global_shortcut_listener_mac.h File chrome/browser/extensions/global_shortcut_listener_mac.h (right): https://codereview.chromium.org/60353008/diff/430001/chrome/browser/extensions/global_shortcut_listener_mac.h#newcode10 chrome/browser/extensions/global_shortcut_listener_mac.h:10: #include ...
7 years, 1 month ago (2013-11-22 16:49:58 UTC) #18
Finnur
> This should probably have some tests, too, right? Yes. Look for Chaobin's recently landed ...
7 years, 1 month ago (2013-11-22 17:52:52 UTC) #19
smus
Ok, switched to CommandService::IsMediaKeys CL. Hoping to land this soon and do tests in a ...
7 years, 1 month ago (2013-11-22 20:48:08 UTC) #20
Robert Sesek
The CL description also needs to be updated, since this no longer uses a dedicated ...
7 years, 1 month ago (2013-11-22 21:36:34 UTC) #21
Robert Sesek
FYI I'll be OOO all next week. I'm CCing mark@, who would be another good ...
7 years, 1 month ago (2013-11-23 17:53:09 UTC) #22
smus
Mark/Robert, would be great to have a final look. https://codereview.chromium.org/60353008/diff/670001/chrome/browser/extensions/global_shortcut_listener_mac.h File chrome/browser/extensions/global_shortcut_listener_mac.h (right): https://codereview.chromium.org/60353008/diff/670001/chrome/browser/extensions/global_shortcut_listener_mac.h#newcode11 chrome/browser/extensions/global_shortcut_listener_mac.h:11: ...
7 years ago (2013-11-24 07:05:58 UTC) #23
Mark Mentovai
https://codereview.chromium.org/60353008/diff/730001/chrome/browser/extensions/global_shortcut_listener_mac.h File chrome/browser/extensions/global_shortcut_listener_mac.h (right): https://codereview.chromium.org/60353008/diff/730001/chrome/browser/extensions/global_shortcut_listener_mac.h#newcode61 chrome/browser/extensions/global_shortcut_listener_mac.h:61: ui::KeyboardCode MediaKeyCodeToKeyboardCode(int key_code); This can be static. And private ...
7 years ago (2013-11-26 15:32:45 UTC) #24
smus
Added interactive tests for mac (thanks for the help, Finnur!), responded to Mark's feedback. PTAL. ...
7 years ago (2013-12-09 08:37:15 UTC) #25
Finnur
https://codereview.chromium.org/60353008/diff/770001/chrome/browser/extensions/extension_commands_global_registry_apitest.cc File chrome/browser/extensions/extension_commands_global_registry_apitest.cc (right): https://codereview.chromium.org/60353008/diff/770001/chrome/browser/extensions/extension_commands_global_registry_apitest.cc#newcode165 chrome/browser/extensions/extension_commands_global_registry_apitest.cc:165: SendNativeKeyEventToXDisplay((ui::KeyboardCode)0x39, true, true, false); wait... what is this for? ...
7 years ago (2013-12-09 17:29:07 UTC) #26
smus
https://codereview.chromium.org/60353008/diff/770001/chrome/browser/extensions/extension_commands_global_registry_apitest.cc File chrome/browser/extensions/extension_commands_global_registry_apitest.cc (right): https://codereview.chromium.org/60353008/diff/770001/chrome/browser/extensions/extension_commands_global_registry_apitest.cc#newcode165 chrome/browser/extensions/extension_commands_global_registry_apitest.cc:165: SendNativeKeyEventToXDisplay((ui::KeyboardCode)0x39, true, true, false); On 2013/12/09 17:29:08, Finnur wrote: ...
7 years ago (2013-12-09 18:11:00 UTC) #27
Finnur
Thanks. That looks better. Can you flesh out the CL description and BUG= while we ...
7 years ago (2013-12-09 19:04:56 UTC) #28
Robert Sesek
https://codereview.chromium.org/60353008/diff/490001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/490001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode26 chrome/browser/extensions/global_shortcut_listener_mac.mm:26: VLOG(0) << "HotKeyHandler fired with event: " << event; ...
7 years ago (2013-12-09 19:17:41 UTC) #29
Mark Mentovai
https://codereview.chromium.org/60353008/diff/730001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/730001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode160 chrome/browser/extensions/global_shortcut_listener_mac.mm:160: InstallApplicationEventHandler(hot_key_function, 1, &event_type, this, NULL); smus wrote: > From ...
7 years ago (2013-12-09 19:31:53 UTC) #30
smus
PTAL https://codereview.chromium.org/60353008/diff/730001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/730001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode160 chrome/browser/extensions/global_shortcut_listener_mac.mm:160: InstallApplicationEventHandler(hot_key_function, 1, &event_type, this, NULL); On 2013/12/09 19:31:54, ...
7 years ago (2013-12-09 23:37:05 UTC) #31
Finnur
https://codereview.chromium.org/60353008/diff/790001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/790001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode68 chrome/browser/extensions/global_shortcut_listener_mac.mm:68: return g_instance.Pointer(); As I recall, we've gotten a similar ...
7 years ago (2013-12-09 23:59:48 UTC) #32
smus
https://codereview.chromium.org/60353008/diff/790001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/790001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode68 chrome/browser/extensions/global_shortcut_listener_mac.mm:68: return g_instance.Pointer(); On 2013/12/09 23:59:49, Finnur wrote: > As ...
7 years ago (2013-12-10 01:06:42 UTC) #33
Mark Mentovai
I will finish this review tomorrow. https://codereview.chromium.org/60353008/diff/850001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/850001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode65 chrome/browser/extensions/global_shortcut_listener_mac.mm:65: if (g_instance == ...
7 years ago (2013-12-10 03:25:21 UTC) #34
smus
On 2013/12/10 03:25:21, Mark Mentovai wrote: > I will finish this review tomorrow. > > ...
7 years ago (2013-12-10 03:44:04 UTC) #35
Mark Mentovai
Yes, making changes to other platforms is fine. But why haven’t you moved the variable ...
7 years ago (2013-12-10 05:04:37 UTC) #36
Mark Mentovai
That should have read: making changes to other platforms in a separate change is fine.
7 years ago (2013-12-10 05:04:56 UTC) #37
Mark Mentovai
https://codereview.chromium.org/60353008/diff/870001/chrome/browser/extensions/global_shortcut_listener_mac.h File chrome/browser/extensions/global_shortcut_listener_mac.h (right): https://codereview.chromium.org/60353008/diff/870001/chrome/browser/extensions/global_shortcut_listener_mac.h#newcode15 chrome/browser/extensions/global_shortcut_listener_mac.h:15: #include "base/lazy_instance.h" This is obsolete now. https://codereview.chromium.org/60353008/diff/870001/chrome/browser/extensions/global_shortcut_listener_mac.h#newcode31 chrome/browser/extensions/global_shortcut_listener_mac.h:31: virtual ...
7 years ago (2013-12-10 16:30:31 UTC) #38
smus
https://codereview.chromium.org/60353008/diff/870001/chrome/browser/extensions/global_shortcut_listener_mac.h File chrome/browser/extensions/global_shortcut_listener_mac.h (right): https://codereview.chromium.org/60353008/diff/870001/chrome/browser/extensions/global_shortcut_listener_mac.h#newcode15 chrome/browser/extensions/global_shortcut_listener_mac.h:15: #include "base/lazy_instance.h" On 2013/12/10 16:30:32, Mark Mentovai wrote: > ...
7 years ago (2013-12-10 22:38:17 UTC) #39
Mark Mentovai
Before I look at the latest patch set: Can you (or maybe Finnur) help explain ...
7 years ago (2013-12-10 22:52:35 UTC) #40
Finnur
Your understanding is correct, Mark. Making them global was probably just an oversight. They should ...
7 years ago (2013-12-10 23:41:51 UTC) #41
Mark Mentovai
Thanks, Finnur. Based on that, I’d like to see a follow-up change to fix the ...
7 years ago (2013-12-11 02:55:01 UTC) #42
Finnur
> How’s it supposed to work? You are correct. MediaKeys are, due to their nature, ...
7 years ago (2013-12-11 06:01:10 UTC) #43
Mark Mentovai
Thanks. This CL should be fixed up to nail down those behaviors too. https://codereview.chromium.org/60353008/diff/890001/chrome/browser/extensions/global_shortcut_listener_mac.h File ...
7 years ago (2013-12-11 15:01:50 UTC) #44
smus
Added (Start|Stop)WatchingHotKeys for symmetry, also renamed HotKeyId and related structures. https://codereview.chromium.org/60353008/diff/890001/chrome/browser/extensions/global_shortcut_listener_mac.h File chrome/browser/extensions/global_shortcut_listener_mac.h (right): https://codereview.chromium.org/60353008/diff/890001/chrome/browser/extensions/global_shortcut_listener_mac.h#newcode37 ...
7 years ago (2013-12-11 17:52:06 UTC) #45
Mark Mentovai
I’m going to wait to re-review this until the multiple key registration thing is ironed ...
7 years ago (2013-12-11 17:59:12 UTC) #46
Finnur
https://codereview.chromium.org/60353008/diff/890001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/890001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode124 chrome/browser/extensions/global_shortcut_listener_mac.mm:124: // MediaKeys can have multiple targets, all keyed off ...
7 years ago (2013-12-11 18:43:35 UTC) #47
Finnur
https://codereview.chromium.org/60353008/diff/890001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/890001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode124 chrome/browser/extensions/global_shortcut_listener_mac.mm:124: // MediaKeys can have multiple targets, all keyed off ...
7 years ago (2013-12-11 19:21:40 UTC) #48
Mark Mentovai
Right, the problem isn’t in RegisterAccelerator, it’s in UnregisterAccelerator. The Windows and X11 implementations (the ...
7 years ago (2013-12-11 22:59:56 UTC) #49
Finnur
> Right, the problem isn’t in RegisterAccelerator, it’s in UnregisterAccelerator. > The Windows and X11 ...
7 years ago (2013-12-12 03:31:23 UTC) #50
smus
On Wed, Dec 11, 2013 at 7:31 PM, <finnur@chromium.org> wrote: > The Windows and X11 ...
7 years ago (2013-12-12 18:14:03 UTC) #51
Mark Mentovai
So then the answer is “the implementations are all broken but it doesn’t currently matter ...
7 years ago (2013-12-12 18:55:13 UTC) #52
Finnur
Yes. As I recall, the GlobalShortcut* classes shouldn't need to worry about whether there is ...
7 years ago (2013-12-12 18:55:34 UTC) #53
smus
Mark/Finnur, are there pending issues on this particular CL? Thanks. On Thu, Dec 12, 2013 ...
7 years ago (2013-12-12 19:38:54 UTC) #54
Mark Mentovai
This is currently in a state where it’s no less capable or different than the ...
7 years ago (2013-12-12 19:51:19 UTC) #55
Mark Mentovai
https://codereview.chromium.org/60353008/diff/950001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/950001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode120 chrome/browser/extensions/global_shortcut_listener_mac.mm:120: void GlobalShortcutListenerMac::RegisterAccelerator( Can you add CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); to this and ...
7 years ago (2013-12-12 20:04:48 UTC) #56
Robert Sesek
LGTM w/ nits from my side, though please address my question and Mark's comments as ...
7 years ago (2013-12-12 20:33:09 UTC) #57
smus
Thanks for another round of feedback. https://codereview.chromium.org/60353008/diff/950001/chrome/browser/extensions/extension_commands_global_registry_apitest.cc File chrome/browser/extensions/extension_commands_global_registry_apitest.cc (right): https://codereview.chromium.org/60353008/diff/950001/chrome/browser/extensions/extension_commands_global_registry_apitest.cc#newcode81 chrome/browser/extensions/extension_commands_global_registry_apitest.cc:81: CGEventSourceCreate(kCGEventSourceStateHIDSystemState); On 2013/12/12 ...
7 years ago (2013-12-12 21:13:50 UTC) #58
Mark Mentovai
I think this is all baked now. Can you or Finnur speak to the next-step ...
7 years ago (2013-12-12 21:19:02 UTC) #59
Finnur
I don't have a problem with addressing concerns raised with the architecture and I think ...
7 years ago (2013-12-12 22:21:00 UTC) #60
Mark Mentovai
LGTM. Let’s enumerate the areas for ongoing improvements. Thanks for hanging in there.
7 years ago (2013-12-12 22:44:42 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/smus@chromium.org/60353008/970001
7 years ago (2013-12-12 23:21:21 UTC) #62
zhchbin
On 2013/12/12 22:21:00, Finnur wrote: > I don't have a problem with addressing concerns raised ...
7 years ago (2013-12-13 01:08:07 UTC) #63
commit-bot: I haz the power
Change committed as 240536
7 years ago (2013-12-13 08:09:41 UTC) #64
Justin Novosad
Tests EventUtilsTest.TestEventFlagsFromNSEvent and EventUtilsTest.TestWindowOpenDispositionFromNSEvent have become flaky in the range 240532-240543 I am suspecting this ...
7 years ago (2013-12-13 16:16:55 UTC) #65
Justin Novosad
I did not find anything I believe is a more probable cause for the new ...
7 years ago (2013-12-13 17:03:01 UTC) #66
Finnur
Junov, I fail to see how this changelist could possibly cause those tests to fail. ...
7 years ago (2013-12-13 20:04:16 UTC) #67
Justin Novosad
Yeah, he explained that to me. The failures went away after the revert though. As ...
7 years ago (2013-12-13 21:08:15 UTC) #68
zhchbin
https://codereview.chromium.org/60353008/diff/970001/chrome/browser/extensions/global_shortcut_listener_mac.mm File chrome/browser/extensions/global_shortcut_listener_mac.mm (right): https://codereview.chromium.org/60353008/diff/970001/chrome/browser/extensions/global_shortcut_listener_mac.mm#newcode49 chrome/browser/extensions/global_shortcut_listener_mac.mm:49: new GlobalShortcutListenerMac(); Hm... Who will delete this object?
7 years ago (2013-12-14 00:52:56 UTC) #69
Mark Mentovai
I filed http://crbug.com/329616 for follow-up refinements. We should continue the discussion of the required follow-ups ...
7 years ago (2013-12-18 20:42:19 UTC) #70
Justin Novosad
7 years ago (2013-12-18 21:12:10 UTC) #71
Message was sent while issue was closed.
Just to document what happened with this Patch: the revert was reverted, the
test failures re-appeared, so the patch was reverted again.  So we have pretty
strong evidence that this CL interferes with ui_unittests.  Ironically,
ui_unittest does run any of the code touched in this patch.  In fact it doesn't
even link against the code in this patch.  My theory is that code changes in
extension_commands_global_registry_apitest.cc are probably making some state
changes that are not being restored, and subsequent unit tests are behaving as
if a modifier key (Alt, control, command) were being held down while the test is
executing.

Powered by Google App Engine
This is Rietveld 408576698