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

Unified Diff: extensions/renderer/dispatcher.cc

Issue 2959583002: [Extensions Bindings] Don't load lastError module with native bindings (Closed)
Patch Set: rebase Created 3 years, 5 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/dispatcher.cc
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc
index 7dfb51c298507ec9e6d10aba12a6f6235c133aaa..67d8bea5bbdbd0e4bed7d5ce1e5edf6cf6b8509a 100644
--- a/extensions/renderer/dispatcher.cc
+++ b/extensions/renderer/dispatcher.cc
@@ -727,7 +727,6 @@ std::vector<std::pair<const char*, int>> Dispatcher::GetJsResources() {
{"guestViewEvents", IDR_GUEST_VIEW_EVENTS_JS},
{"imageUtil", IDR_IMAGE_UTIL_JS},
{"json_schema", IDR_JSON_SCHEMA_JS},
- {"lastError", IDR_LAST_ERROR_JS},
{"messaging", IDR_MESSAGING_JS},
{"messaging_utils", IDR_MESSAGING_UTILS_JS},
{kSchemaUtils, IDR_SCHEMA_UTILS_JS},
@@ -801,6 +800,7 @@ std::vector<std::pair<const char*, int>> Dispatcher::GetJsResources() {
if (!FeatureSwitch::native_crx_bindings()->IsEnabled()) {
resources.emplace_back("binding", IDR_BINDING_JS);
resources.emplace_back(kEventBindings, IDR_EVENT_BINDINGS_JS);
+ resources.emplace_back("lastError", IDR_LAST_ERROR_JS);
resources.emplace_back("sendRequest", IDR_SEND_REQUEST_JS);
// Custom types sources.

Powered by Google App Engine
This is Rietveld 408576698