Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: chrome/app/chrome_main_delegate.cc

Issue 1279123004: Replace ToLower calls to the new format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/i18n/rtl.cc ('k') | chrome/app/signature_validator_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_main_delegate.cc
diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
index 031a0a10ba99e8f604fddfaafa8d5a968324df4c..254eae0c8968d850034344ce7b352d652f442ecf 100644
--- a/chrome/app/chrome_main_delegate.cc
+++ b/chrome/app/chrome_main_delegate.cc
@@ -152,13 +152,11 @@ namespace {
// Early versions of Chrome incorrectly registered a chromehtml: URL handler,
// which gives us nothing but trouble. Avoid launching chrome this way since
// some apps fail to properly escape arguments.
-bool HasDeprecatedArguments(const std::wstring& command_line) {
+bool HasDeprecatedArguments(const base::string16& command_line) {
const wchar_t kChromeHtml[] = L"chromehtml:";
- std::wstring command_line_lower = command_line;
+ base::string16 command_line_lower = base::ToLowerASCII(command_line);
// We are only searching for ASCII characters so this is OK.
- base::StringToLowerASCII(&command_line_lower);
- std::wstring::size_type pos = command_line_lower.find(kChromeHtml);
- return (pos != std::wstring::npos);
+ return (command_line_lower.find(kChromeHtml) != base::string16::npos);
}
// If we try to access a path that is not currently available, we want the call
« no previous file with comments | « base/i18n/rtl.cc ('k') | chrome/app/signature_validator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698