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

Unified Diff: base/chrome_application_mac.mm

Issue 385009: [Mac] ScopedSendingEvent finds NSApp by itself. (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/chrome_application_mac.h ('k') | chrome/browser/tab_contents/tab_contents_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/chrome_application_mac.mm
diff --git a/base/chrome_application_mac.mm b/base/chrome_application_mac.mm
index d2d8f9f6e878a90c74baada05b16152b5601deb8..cdad4ab81ebd38bb7eb48281a16c76d5b684f8d8 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];
}
« no previous file with comments | « base/chrome_application_mac.h ('k') | chrome/browser/tab_contents/tab_contents_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698