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

Unified Diff: extensions/renderer/dispatcher.cc

Issue 2908883002: [Extensions Bindings] Remove some modules with native bindings (Closed)
Patch Set: . 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/dispatcher.cc
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc
index af7dd84a5d7502ab9badbe9398ebb2c1cfcb8d7d..7cdd26f87e3d95ade543122d9efc0d93966e535e 100644
--- a/extensions/renderer/dispatcher.cc
+++ b/extensions/renderer/dispatcher.cc
@@ -787,15 +787,18 @@ std::vector<std::pair<const char*, int>> Dispatcher::GetJsResources() {
{"printerProvider", IDR_PRINTER_PROVIDER_CUSTOM_BINDINGS_JS},
{"runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS},
{"webViewRequest", IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS},
- {"binding", IDR_BINDING_JS},
-
- // Custom types sources.
- {"StorageArea", IDR_STORAGE_AREA_JS},
// Platform app sources that are not API-specific..
{"platformApp", IDR_PLATFORM_APP_JS},
};
+ if (!FeatureSwitch::native_crx_bindings()->IsEnabled()) {
+ resources.emplace_back("binding", IDR_BINDING_JS);
+
+ // Custom types sources.
+ resources.emplace_back("StorageArea", IDR_STORAGE_AREA_JS);
+ }
+
if (base::FeatureList::IsEnabled(::features::kGuestViewCrossProcessFrames)) {
resources.emplace_back("guestViewIframe", IDR_GUEST_VIEW_IFRAME_JS);
resources.emplace_back("guestViewIframeContainer",

Powered by Google App Engine
This is Rietveld 408576698