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

Unified Diff: extensions/renderer/dispatcher.cc

Issue 1026703004: Refactored extensionOptions to use the new guestViewAttributes module. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment. Created 5 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
Index: extensions/renderer/dispatcher.cc
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc
index 67ed82df87ef970d24bb9f31ad4544178ccc1d22..55a9b14a508f7ca98f2a9a659276b94d23ada2b1 100644
--- a/extensions/renderer/dispatcher.cc
+++ b/extensions/renderer/dispatcher.cc
@@ -478,6 +478,10 @@ std::vector<std::pair<std::string, int> > Dispatcher::GetJsResources() {
resources.push_back(std::make_pair(kEventBindings, IDR_EVENT_BINDINGS_JS));
resources.push_back(std::make_pair("extensionOptions",
IDR_EXTENSION_OPTIONS_JS));
+ resources.push_back(std::make_pair("extensionOptionsAttributes",
+ IDR_EXTENSION_OPTIONS_ATTRIBUTES_JS));
+ resources.push_back(std::make_pair("extensionOptionsConstants",
+ IDR_EXTENSION_OPTIONS_CONSTANTS_JS));
resources.push_back(std::make_pair("extensionOptionsEvents",
IDR_EXTENSION_OPTIONS_EVENTS_JS));
resources.push_back(std::make_pair("extensionView", IDR_EXTENSION_VIEW_JS));
@@ -1409,6 +1413,7 @@ void Dispatcher::RequireGuestViewModules(ScriptContext* context) {
// Require ExtensionOptions.
if (context->GetAvailability("extensionOptionsInternal").is_available()) {
module_system->Require("extensionOptions");
+ module_system->Require("extensionOptionsAttributes");
}
// Require ExtensionView.

Powered by Google App Engine
This is Rietveld 408576698