Index: extensions/renderer/api_last_error.h |
diff --git a/extensions/renderer/api_last_error.h b/extensions/renderer/api_last_error.h |
index 68ed4dd2a957ad79456f7c25f43e725beff43e7d..95126fe62fc5e148a695c0c32fb811985708cb85 100644 |
--- a/extensions/renderer/api_last_error.h |
+++ b/extensions/renderer/api_last_error.h |
@@ -33,6 +33,9 @@ class APILastError { |
// true and the developer didn't check the error, this throws an exception. |
void ClearError(v8::Local<v8::Context> context, bool report_if_unchecked); |
+ // Returns true if the given context has an active error. |
+ bool HasError(v8::Local<v8::Context> context); |
+ |
private: |
GetParent get_parent_; |