diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-10 20:34:30 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-10 20:34:30 +0000 |
commit | fd6752c1960fa20715729de98d43f9ff64124c1c (patch) | |
tree | 3bd1dfa674aaf2f87559bf130590346b1d6b1519 /base/chrome_application_mac.mm | |
parent | fadf9cdd69aa5bd50ce55d750c1bb1763abcf968 (diff) | |
download | chromium_src-fd6752c1960fa20715729de98d43f9ff64124c1c.zip chromium_src-fd6752c1960fa20715729de98d43f9ff64124c1c.tar.gz chromium_src-fd6752c1960fa20715729de98d43f9ff64124c1c.tar.bz2 |
[Mac] ScopedSendingEvent finds NSApp by itself.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/385009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/chrome_application_mac.mm')
-rw-r--r-- | base/chrome_application_mac.mm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/base/chrome_application_mac.mm b/base/chrome_application_mac.mm index d2d8f9f..cdad4ab 100644 --- a/base/chrome_application_mac.mm +++ b/base/chrome_application_mac.mm @@ -29,7 +29,7 @@ } - (void)sendEvent:(NSEvent*)event { - chrome_application_mac::ScopedSendingEvent sendingEventScoper(self); + chrome_application_mac::ScopedSendingEvent sendingEventScoper; [super sendEvent:event]; } @@ -37,8 +37,9 @@ namespace chrome_application_mac { -ScopedSendingEvent::ScopedSendingEvent(CrApplication* app) : app_(app) { - handling_ = [app_ isHandlingSendEvent]; +ScopedSendingEvent::ScopedSendingEvent() + : app_(static_cast<CrApplication*>([CrApplication sharedApplication])), + handling_([app_ isHandlingSendEvent]) { [app_ setHandlingSendEvent:YES]; } |