s/global/session in constants

This commit is contained in:
Samuel Attard 2017-09-17 01:10:01 +10:00 committed by Cheng Zhao
parent d2707315e6
commit d9359d8b6c
4 changed files with 15 additions and 15 deletions

View file

@ -143,7 +143,7 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
mate::Handle<atom::api::WebContents> api_web_contents = atom::api::WebContents::CreateFrom(isolate, web_contents);
for (auto preloadPath : atom::api::Session::CreateFrom(isolate, api_web_contents.get()->GetBrowserContext())->GetPreloads()) {
if (base::FilePath(preloadPath).IsAbsolute())
command_line->AppendSwitchNative(switches::kGlobalPreloadScript,
command_line->AppendSwitchNative(switches::kSessionPreloadScript,
preloadPath);
else
LOG(ERROR) << "preload script must have absolute path.";