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

Unified Diff: chrome/browser/pref_service.cc

Issue 3117017: Remove deprecated wstring Get(As)String() methods from Value, etc. (Closed)
Patch Set: fix win Created 10 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
Index: chrome/browser/pref_service.cc
diff --git a/chrome/browser/pref_service.cc b/chrome/browser/pref_service.cc
index 4535528752d8c814ec4f7ac7aecc31cb01fa6f08..9e3ad7e16a850fa984dc7a87e43b21cbc8808e20 100644
--- a/chrome/browser/pref_service.cc
+++ b/chrome/browser/pref_service.cc
@@ -667,12 +667,12 @@ int64 PrefService::GetInt64(const char* path) const {
NOTREACHED() << "Trying to read an unregistered pref: " << path;
return 0;
}
- std::wstring result(L"0");
+ std::string result("0");
bool rv = pref->GetValue()->GetAsString(&result);
DCHECK(rv);
int64 val;
- base::StringToInt64(WideToUTF8(result), &val);
+ base::StringToInt64(result, &val);
return val;
}

Powered by Google App Engine
This is Rietveld 408576698