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

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: s/Calls/Executes/. 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
« no previous file with comments | « no previous file | base/mac/scoped_nsexception_enabler.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..92339df31e63ae9fd361f18a024f197738ea74cc 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);
+// Executes [target performSelector:sel] with fatal-exceptions turned
+// off, and returns the result. If an exception is thrown during the
+// perform, nil is returned.
+BASE_EXPORT id PerformSelectorIgnoringExceptions(NSObject* target, SEL sel);
+
} // namespace mac
} // namespace base
« no previous file with comments | « no previous file | base/mac/scoped_nsexception_enabler.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698