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

Unified Diff: chrome/browser/page_state.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/browser/page_state.cc
===================================================================
--- chrome/browser/page_state.cc (revision 10641)
+++ chrome/browser/page_state.cc (working copy)
@@ -82,7 +82,7 @@
bool PageState::GetInt64Property(const std::wstring& key, int64* value) const {
std::wstring v;
if (GetProperty(key, &v)) {
- return StringToInt64(v, value);
+ return StringToInt64(WideToUTF16Hack(v), value);
}
return false;
}
@@ -94,7 +94,7 @@
bool PageState::GetIntProperty(const std::wstring& key, int* value) const {
std::wstring v;
if (GetProperty(key, &v)) {
- return StringToInt(v, value);
+ return StringToInt(WideToUTF16Hack(v), value);
}
return false;
}
@@ -105,4 +105,3 @@
copy->state_.reset(static_cast<DictionaryValue*>(state_->DeepCopy()));
return copy;
}
-

Powered by Google App Engine
This is Rietveld 408576698