File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,18 @@ Shell* Shell::Create(BrowserContext* browser_context,
87
87
int routing_id,
88
88
WebContents* base_web_contents) {
89
89
WebContents::CreateParams create_params (browser_context, site_instance);
90
+
91
+ std::string filename;
92
+ base::DictionaryValue* manifest = GetPackage ()->root ();
93
+ if (manifest->GetString (switches::kmInjectJSDocStart, &filename))
94
+ create_params.nw_inject_js_doc_start = filename;
95
+ if (manifest->GetString (switches::kmInjectJSDocEnd, &filename))
96
+ create_params.nw_inject_js_doc_end = filename;
97
+ if (manifest->GetString (switches::kmInjectCSS, &filename))
98
+ create_params.nw_inject_css_fn = filename;
99
+
90
100
create_params.routing_id = routing_id;
101
+
91
102
WebContents* web_contents = WebContents::Create (create_params);
92
103
93
104
Shell* shell = new Shell (web_contents, GetPackage ()->window ());
You can’t perform that action at this time.
0 commit comments