summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_sandbox_support_linux.cc
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 01:21:41 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 01:21:41 +0000
commitd656353ede2f6a439d12d5fe7b5ac338e2a35fa4 (patch)
treee3fe330f2c99653c1545b1ac9812e740faca4f85 /chrome/renderer/renderer_sandbox_support_linux.cc
parent5f9a317bdd2cd3475687b228491972c1ec649343 (diff)
downloadchromium_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.cc8
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;
}