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

Unified Diff: chrome/common/logging_chrome.cc

Issue 28281: Get rid of wstring variants of StringToFoo. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
Index: chrome/common/logging_chrome.cc
===================================================================
--- chrome/common/logging_chrome.cc (revision 10641)
+++ chrome/common/logging_chrome.cc (working copy)
@@ -125,7 +125,7 @@
// default to LOG_WARNING.
std::wstring log_level = command_line.GetSwitchValue(switches::kLoggingLevel);
int level = 0;
- if (StringToInt(log_level, &level)) {
+ if (StringToInt(WideToUTF16Hack(log_level), &level)) {
if ((level >= 0) && (level < LOG_NUM_SEVERITIES))
logging::SetMinLogLevel(level);
} else {
@@ -200,4 +200,3 @@
}
} // namespace logging
-

Powered by Google App Engine
This is Rietveld 408576698