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

Unified Diff: extensions/renderer/declarative_event_unittest.cc

Issue 2891123002: [Extensions Bindings] Handle updating context permissions (Closed)
Patch Set: jbroman's Created 3 years, 7 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/declarative_event_unittest.cc
diff --git a/extensions/renderer/declarative_event_unittest.cc b/extensions/renderer/declarative_event_unittest.cc
index c5771d8a3af6ed106474866c8990a8270526185b..95ab803314a08f0a653000bf3d5fe53f410fb6b1 100644
--- a/extensions/renderer/declarative_event_unittest.cc
+++ b/extensions/renderer/declarative_event_unittest.cc
@@ -51,10 +51,6 @@ const char kDeclarativeAPISpec[] =
" }]"
"}";
-bool AllowAllAPIs(const std::string& name) {
- return true;
-}
-
} // namespace
class DeclarativeEventTest : public APIBindingTest {
@@ -199,7 +195,7 @@ TEST_F(DeclarativeEventWithSchemaTest, TestAllMethods) {
v8::Local<v8::Context> context = MainContext();
v8::Local<v8::Object> api = bindings_system()->CreateAPIInstance(
- kDeclarativeAPIName, context, base::Bind(&AllowAllAPIs), nullptr);
+ kDeclarativeAPIName, context, nullptr);
ASSERT_FALSE(api.IsEmpty());
v8::Local<v8::Value> declarative_event =
« no previous file with comments | « extensions/renderer/api_bindings_system_unittest.cc ('k') | extensions/renderer/native_extension_bindings_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698