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

Side by Side Diff: chrome/common/chrome_application_mac.mm

Issue 6065007: Mac: Unbreak --no-gpu-sandbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/common/chrome_application_mac.h" 5 #import "chrome/common/chrome_application_mac.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 @interface CrApplication () 9 @interface CrApplication ()
10 - (void)setHandlingSendEvent:(BOOL)handlingSendEvent; 10 - (void)setHandlingSendEvent:(BOOL)handlingSendEvent;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 ScopedSendingEvent::ScopedSendingEvent() 62 ScopedSendingEvent::ScopedSendingEvent()
63 : app_(static_cast<CrApplication*>([CrApplication sharedApplication])), 63 : app_(static_cast<CrApplication*>([CrApplication sharedApplication])),
64 handling_([app_ isHandlingSendEvent]) { 64 handling_([app_ isHandlingSendEvent]) {
65 [app_ setHandlingSendEvent:YES]; 65 [app_ setHandlingSendEvent:YES];
66 } 66 }
67 67
68 ScopedSendingEvent::~ScopedSendingEvent() { 68 ScopedSendingEvent::~ScopedSendingEvent() {
69 [app_ setHandlingSendEvent:handling_]; 69 [app_ setHandlingSendEvent:handling_];
70 } 70 }
71 71
72 void RegisterCrApp() {
73 [CrApplication sharedApplication];
74 }
75
72 } // namespace chrome_application_mac 76 } // namespace chrome_application_mac
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698