diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 19:38:30 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 19:38:30 +0000 |
commit | a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0 (patch) | |
tree | b37c85641aef8df14c732e4b187444e040a11555 /base/time.cc | |
parent | a93e517bfe25f11b2c4cc7d69f386424b93a2efa (diff) | |
download | chromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.zip chromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.tar.gz chromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.tar.bz2 |
This CL adds macro used to track the creation and destruction
of HWNDs, in an attempt to detect potential double-delete.
A double-delete of a HWND might be responsible for the crasher
http://crbug.com/4714
Note: this CL was previously committed and reverted because it broke the sandbox integration module.
Review URL: http://codereview.chromium.org/21032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/time.cc')
-rw-r--r-- | base/time.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/time.cc b/base/time.cc index 12519aa..5ce1f80 100644 --- a/base/time.cc +++ b/base/time.cc @@ -4,6 +4,7 @@ #include "base/time.h" #include "base/string_util.h" +#include "base/sys_string_conversions.h" #include "base/third_party/nspr/prtime.h" #include "base/logging.h" @@ -79,7 +80,7 @@ Time Time::LocalMidnight() const { // static bool Time::FromString(const wchar_t* time_string, Time* parsed_time) { DCHECK((time_string != NULL) && (parsed_time != NULL)); - std::string ascii_time_string = WideToUTF8(time_string); + std::string ascii_time_string = SysWideToUTF8(time_string); if (ascii_time_string.length() == 0) return false; PRTime result_time = 0; |