diff options
author | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-24 19:48:39 +0000 |
---|---|---|
committer | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-24 19:48:39 +0000 |
commit | f10467372b7cc985a8f824c7b0298492e2c24c73 (patch) | |
tree | 2ecb81a78826a682547254c61b44d23f570844ff | |
parent | f7a05a5c5a38460a56fb00ffa0630735dbe66509 (diff) | |
download | chromium_src-f10467372b7cc985a8f824c7b0298492e2c24c73.zip chromium_src-f10467372b7cc985a8f824c7b0298492e2c24c73.tar.gz chromium_src-f10467372b7cc985a8f824c7b0298492e2c24c73.tar.bz2 |
Call UTF8String to test if it's the source of crashes.
BUG=156892
Review URL: https://chromiumcodereview.appspot.com/11236070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163888 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/common/child_process_logging_mac.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/child_process_logging_mac.mm b/chrome/common/child_process_logging_mac.mm index bf447ba..1b21669 100644 --- a/chrome/common/child_process_logging_mac.mm +++ b/chrome/common/child_process_logging_mac.mm @@ -175,6 +175,11 @@ void SetPrinterInfo(const char* printer_info) { ClearCrashKey(key); if (!info[i].empty()) { NSString *value = [NSString stringWithUTF8String:info[i].c_str()]; + // TODO(vitalybuka): Remove following 3 lines after testing jeremy's + // hypothesis (see http://crbug.com/156892). + const char* utf_str = [value UTF8String]; + if (utf_str) + VLOG(1) << "SetPrinterInfo, part " << i << ": " << utf_str; SetCrashKeyValue(key, value); } } |