mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02: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:
@@ -260,8 +260,12 @@ void CefContentBrowserClient::AppendExtraCommandLineSwitches(
|
|||||||
// Propagate the following switches to all command lines (along with any
|
// Propagate the following switches to all command lines (along with any
|
||||||
// associated values) if present in the browser command line.
|
// associated values) if present in the browser command line.
|
||||||
static const char* const kSwitchNames[] = {
|
static const char* const kSwitchNames[] = {
|
||||||
|
switches::kLang,
|
||||||
|
switches::kLocalesDirPath,
|
||||||
switches::kLogFile,
|
switches::kLogFile,
|
||||||
switches::kLogSeverity,
|
switches::kLogSeverity,
|
||||||
|
switches::kPackLoadingDisabled,
|
||||||
|
switches::kResourcesDirPath,
|
||||||
};
|
};
|
||||||
command_line->CopySwitchesFrom(browser_cmd, kSwitchNames,
|
command_line->CopySwitchesFrom(browser_cmd, kSwitchNames,
|
||||||
arraysize(kSwitchNames));
|
arraysize(kSwitchNames));
|
||||||
@@ -274,10 +278,6 @@ void CefContentBrowserClient::AppendExtraCommandLineSwitches(
|
|||||||
// any associated values) if present in the browser command line.
|
// any associated values) if present in the browser command line.
|
||||||
static const char* const kSwitchNames[] = {
|
static const char* const kSwitchNames[] = {
|
||||||
switches::kProductVersion,
|
switches::kProductVersion,
|
||||||
switches::kLang,
|
|
||||||
switches::kResourcesDirPath,
|
|
||||||
switches::kLocalesDirPath,
|
|
||||||
switches::kPackLoadingDisabled,
|
|
||||||
};
|
};
|
||||||
command_line->CopySwitchesFrom(browser_cmd, kSwitchNames,
|
command_line->CopySwitchesFrom(browser_cmd, kSwitchNames,
|
||||||
arraysize(kSwitchNames));
|
arraysize(kSwitchNames));
|
||||||
|
Reference in New Issue
Block a user