forked from chromiumembedded/cef
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CefCommandLine character case requirements (fixes issue chromiume…
…mbedded#1872) Switch names will now be converted to lowercase ASCII on all platforms. Switch values will retain the original case and UTF8 encoding.
- Loading branch information
1 parent
6516b56
commit 4d1c5eb
Showing
6 changed files
with
58 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git base/command_line.cc base/command_line.cc | ||
index 3ef2e87e40687..f7b91a202a377 100644 | ||
--- base/command_line.cc | ||
+++ base/command_line.cc | ||
@@ -333,11 +333,10 @@ void CommandLine::AppendSwitchPath(StringPiece switch_string, | ||
|
||
void CommandLine::AppendSwitchNative(StringPiece switch_string, | ||
CommandLine::StringPieceType value) { | ||
-#if defined(OS_WIN) | ||
const std::string switch_key = ToLowerASCII(switch_string); | ||
+#if defined(OS_WIN) | ||
StringType combined_switch_string(UTF8ToWide(switch_key)); | ||
#elif defined(OS_POSIX) || defined(OS_FUCHSIA) | ||
- StringPiece switch_key = switch_string; | ||
StringType combined_switch_string(switch_key); | ||
#endif | ||
size_t prefix_length = GetSwitchPrefixLength(combined_switch_string); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters