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

Unified Diff: base/mac/scoped_nsexception_enabler.h

Issue 8883040: [Mac] Ignore spell-checker exceptions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wordsmithing. Created 9 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 side-by-side diff with in-line comments
Download patch
Index: base/mac/scoped_nsexception_enabler.h
diff --git a/base/mac/scoped_nsexception_enabler.h b/base/mac/scoped_nsexception_enabler.h
index 3c16d2f5679035395dc426c879f50e5313724264..93242abf954e5757b09cb1fd587673fdd17b52f6 100644
--- a/base/mac/scoped_nsexception_enabler.h
+++ b/base/mac/scoped_nsexception_enabler.h
@@ -6,6 +6,8 @@
#define BASE_MAC_SCOPED_NSEXCEPTION_ENABLER_H_
#pragma once
+#import <Foundation/Foundation.h>
+
#include "base/base_export.h"
#include "base/basictypes.h"
@@ -41,6 +43,11 @@ class BASE_EXPORT ScopedNSExceptionEnabler {
BASE_EXPORT bool GetNSExceptionsAllowed();
BASE_EXPORT void SetNSExceptionsAllowed(bool allowed);
+// Calls [target performSelector:sel] with fatal-exceptions turned
Nico 2011/12/09 22:01:07 // Calls -performSelector:sel …
+// off, and returns the result. If an exception is thrown during the
+// perform, nil is returned.
+BASE_EXPORT id PerformSelectorIgnoringExceptions(NSObject* target, SEL sel);
Scott Hess - ex-Googler 2011/12/09 01:46:28 I wanted to have: @implementation NSObject (AddlS
+
} // namespace mac
} // namespace base
« no previous file with comments | « no previous file | base/mac/scoped_nsexception_enabler.mm » ('j') | chrome/browser/spellchecker/spellchecker_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698