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

Unified Diff: extensions/renderer/api_last_error.h

Issue 2762623003: [Extensions Bindings] Add lastError utilities to APIBindingJSUtil (Closed)
Patch Set: Rebase Created 3 years, 9 months 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 | « extensions/renderer/api_bindings_system_unittest.cc ('k') | extensions/renderer/api_last_error.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « extensions/renderer/api_bindings_system_unittest.cc ('k') | extensions/renderer/api_last_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698