diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-17 20:44:13 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-17 20:44:13 +0000 |
commit | 5dbabd0a427685ed217e3add51fb617876f28a8f (patch) | |
tree | cc7bbbe0d335877edf813df9c7e3b7793231df26 /chrome/browser/cocoa/tab_controller_unittest.mm | |
parent | a05d223dccc3f04067f0a12f8b6b8f60a4dd8290 (diff) | |
download | chromium_src-5dbabd0a427685ed217e3add51fb617876f28a8f.zip chromium_src-5dbabd0a427685ed217e3add51fb617876f28a8f.tar.gz chromium_src-5dbabd0a427685ed217e3add51fb617876f28a8f.tar.bz2 |
Use NSApp in preference to [NSApplication sharedApplicaton]
BUG=0
TEST={}
Review URL: http://codereview.chromium.org/207001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26480 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_controller_unittest.mm')
-rw-r--r-- | chrome/browser/cocoa/tab_controller_unittest.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/tab_controller_unittest.mm b/chrome/browser/cocoa/tab_controller_unittest.mm index 5d39aa4..4616a9c 100644 --- a/chrome/browser/cocoa/tab_controller_unittest.mm +++ b/chrome/browser/cocoa/tab_controller_unittest.mm @@ -38,7 +38,7 @@ } - (void)mouseTimer:(NSTimer*)timer { // Fire the mouseUp to break the TabView drag loop. - NSEvent* current = [[NSApplication sharedApplication] currentEvent]; + NSEvent* current = [NSApp currentEvent]; NSWindow* window = [timer userInfo]; NSEvent* up = [NSEvent mouseEventWithType:NSLeftMouseUp location:[current locationInWindow] @@ -180,7 +180,7 @@ TEST_F(TabControllerTest, UserSelection) { selector:@selector(mouseTimer:) userInfo:window repeats:NO]; - NSEvent* current = [[NSApplication sharedApplication] currentEvent]; + NSEvent* current = [NSApp currentEvent]; NSPoint click_point = NSMakePoint(frame.size.width / 2, frame.size.height / 2); NSEvent* down = [NSEvent mouseEventWithType:NSLeftMouseDown |