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

Unified Diff: chrome/common/pref_service.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/pref_service.cc
===================================================================
--- chrome/common/pref_service.cc (revision 10641)
+++ chrome/common/pref_service.cc (working copy)
@@ -72,12 +72,14 @@
}
case Value::TYPE_INTEGER: {
- return Value::CreateIntegerValue(StringToInt(resource_string));
+ return Value::CreateIntegerValue(StringToInt(WideToUTF16Hack(
+ resource_string)));
brettw 2009/02/27 23:45:15 I'd wrap this and the next change to 4 spaces from
break;
}
case Value::TYPE_REAL: {
- return Value::CreateRealValue(StringToDouble(resource_string));
+ return Value::CreateRealValue(StringToDouble(WideToUTF16Hack(
+ resource_string)));
break;
}
@@ -683,4 +685,3 @@
DCHECK(default_value_.get());
return default_value_->Equals(GetValue());
}
-

Powered by Google App Engine
This is Rietveld 408576698