diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-10 01:21:41 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-10 01:21:41 +0000 |
commit | d656353ede2f6a439d12d5fe7b5ac338e2a35fa4 (patch) | |
tree | e3fe330f2c99653c1545b1ac9812e740faca4f85 /chrome/renderer/renderer_sandbox_support_linux.cc | |
parent | 5f9a317bdd2cd3475687b228491972c1ec649343 (diff) | |
download | chromium_src-d656353ede2f6a439d12d5fe7b5ac338e2a35fa4.zip chromium_src-d656353ede2f6a439d12d5fe7b5ac338e2a35fa4.tar.gz chromium_src-d656353ede2f6a439d12d5fe7b5ac338e2a35fa4.tar.bz2 |
Revert "Revert "Linux: add LOG(FATAL) to try and catch an error.""
This reverts commit 4d74c3b46aeb8c7e3a05087d3b1f05f6906fd6e2.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_sandbox_support_linux.cc')
-rw-r--r-- | chrome/renderer/renderer_sandbox_support_linux.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_sandbox_support_linux.cc b/chrome/renderer/renderer_sandbox_support_linux.cc index a08fff1..758bf57 100644 --- a/chrome/renderer/renderer_sandbox_support_linux.cc +++ b/chrome/renderer/renderer_sandbox_support_linux.cc @@ -32,6 +32,14 @@ std::string getFontFamilyForCharacters(const uint16_t* utf16, size_t num_utf16) reply.ReadString(&pickle_iter, &family_name); } + if (!family_name.size()) { + LOG(ERROR) << "Starting code point dump:"; + for (size_t i = 0; i < num_utf16; ++i) + LOG(ERROR) << " " << utf16[i]; + LOG(FATAL) << "Bug caught: requested font family for " << num_utf16 + << " code points and got an empty string on return"; + } + return family_name; } |