mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-17 04:30:46 +01:00
Pass resource-related command-line flags to all process types (issue #759).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@878 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
e9c567599d
commit
a9a7b8940d
@ -260,8 +260,12 @@ void CefContentBrowserClient::AppendExtraCommandLineSwitches(
|
||||
// Propagate the following switches to all command lines (along with any
|
||||
// associated values) if present in the browser command line.
|
||||
static const char* const kSwitchNames[] = {
|
||||
switches::kLang,
|
||||
switches::kLocalesDirPath,
|
||||
switches::kLogFile,
|
||||
switches::kLogSeverity,
|
||||
switches::kPackLoadingDisabled,
|
||||
switches::kResourcesDirPath,
|
||||
};
|
||||
command_line->CopySwitchesFrom(browser_cmd, kSwitchNames,
|
||||
arraysize(kSwitchNames));
|
||||
@ -274,10 +278,6 @@ void CefContentBrowserClient::AppendExtraCommandLineSwitches(
|
||||
// any associated values) if present in the browser command line.
|
||||
static const char* const kSwitchNames[] = {
|
||||
switches::kProductVersion,
|
||||
switches::kLang,
|
||||
switches::kResourcesDirPath,
|
||||
switches::kLocalesDirPath,
|
||||
switches::kPackLoadingDisabled,
|
||||
};
|
||||
command_line->CopySwitchesFrom(browser_cmd, kSwitchNames,
|
||||
arraysize(kSwitchNames));
|
||||
|
Loading…
x
Reference in New Issue
Block a user