diff options
author | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-28 01:01:50 +0000 |
---|---|---|
committer | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-28 01:01:50 +0000 |
commit | 41fb1d7d262e44d8561a5c4d6d7e353f638b56e8 (patch) | |
tree | 0b6159a725069a98f9fb6e6e451949a6ce37ccfa /chrome/browser/metrics | |
parent | 3131a289c0edff9d58da46cae16beae6bd6c0650 (diff) | |
download | chromium_src-41fb1d7d262e44d8561a5c4d6d7e353f638b56e8.zip chromium_src-41fb1d7d262e44d8561a5c4d6d7e353f638b56e8.tar.gz chromium_src-41fb1d7d262e44d8561a5c4d6d7e353f638b56e8.tar.bz2 |
Get rid of wstring variants of StringToFoo.
Review URL: http://codereview.chromium.org/28281
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10664 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics')
-rw-r--r-- | chrome/browser/metrics/metrics_service.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc index c50a4c5..5b41058 100644 --- a/chrome/browser/metrics/metrics_service.cc +++ b/chrome/browser/metrics/metrics_service.cc @@ -616,12 +616,12 @@ void MetricsService::InitializeMetricsState() { // This is marked false when we get a WM_ENDSESSION. pref->SetBoolean(prefs::kStabilitySessionEndCompleted, true); - int64 last_start_time = - StringToInt64(pref->GetString(prefs::kStabilityLaunchTimeSec)); - int64 last_end_time = - StringToInt64(pref->GetString(prefs::kStabilityLastTimestampSec)); - int64 uptime = - StringToInt64(pref->GetString(prefs::kStabilityUptimeSec)); + int64 last_start_time = StringToInt64( + WideToUTF16Hack(pref->GetString(prefs::kStabilityLaunchTimeSec))); + int64 last_end_time = StringToInt64( + WideToUTF16Hack(pref->GetString(prefs::kStabilityLastTimestampSec))); + int64 uptime = StringToInt64( + WideToUTF16Hack(pref->GetString(prefs::kStabilityUptimeSec))); if (last_start_time && last_end_time) { // TODO(JAR): Exclude sleep time. ... which must be gathered in UI loop. |