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

Unified Diff: extensions/renderer/api_binding_unittest.cc

Issue 2819683002: [Extenisons Bindings] Don't throw unchecked errors; add console errors (Closed)
Patch Set: jbroman's Created 3 years, 8 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
Index: extensions/renderer/api_binding_unittest.cc
diff --git a/extensions/renderer/api_binding_unittest.cc b/extensions/renderer/api_binding_unittest.cc
index c8d7d22515d9f401d00cf81d8e7150571ab86708..770780283c202e461b2cb51db0033c59ac9751d6 100644
--- a/extensions/renderer/api_binding_unittest.cc
+++ b/extensions/renderer/api_binding_unittest.cc
@@ -143,7 +143,8 @@ class APIBindingUnittest : public APIBindingTest {
request_handler_ = base::MakeUnique<APIRequestHandler>(
base::Bind(&APIBindingUnittest::OnFunctionCall, base::Unretained(this)),
base::Bind(&RunFunctionOnGlobalAndIgnoreResult),
- APILastError(APILastError::GetParent()));
+ APILastError(APILastError::GetParent(),
+ APILastError::AddConsoleError()));
}
void TearDown() override {
« no previous file with comments | « chrome/browser/extensions/native_bindings_apitest.cc ('k') | extensions/renderer/api_bindings_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698