summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 09:01:03 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 09:01:03 +0000
commit9bda4dd70798cac6ebb35aff2c3bd84857bc4390 (patch)
treeba569cbab720a6c90a3542b17865edf0d3ce63c5 /chrome/renderer
parentb7273e0140e3d75e4cbed24a7510d96f3d662045 (diff)
downloadchromium_src-9bda4dd70798cac6ebb35aff2c3bd84857bc4390.zip
chromium_src-9bda4dd70798cac6ebb35aff2c3bd84857bc4390.tar.gz
chromium_src-9bda4dd70798cac6ebb35aff2c3bd84857bc4390.tar.bz2
POSIX: fix renderer crash
Currently we don't have a HistoryService. This stops the VisitiedLinkMaster from sucessfully calling Init(). In that case, no message is ever sent to the renderer with the VisitiedLink shared memory region and we end up crashing with SIGFPE as we try to hash by taking a fingerprint mod 0. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9474 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/renderer_glue.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc
index 966f716..e5fb30e 100644
--- a/chrome/renderer/renderer_glue.cc
+++ b/chrome/renderer/renderer_glue.cc
@@ -287,7 +287,16 @@ uint64 VisitedLinkHash(const char* canonical_url, size_t length) {
}
bool IsLinkVisited(uint64 link_hash) {
+#if defined(OS_WIN)
return g_render_thread->visited_link_slave()->IsVisited(link_hash);
+#elif defined(OS_POSIX)
+ // TODO(port): Currently we don't have a HistoryService. This stops the
+ // VisitiedLinkMaster from sucessfully calling Init(). In that case, no
+ // message is ever sent to the renderer with the VisitiedLink shared memory
+ // region and we end up crashing with SIGFPE as we try to hash by taking a
+ // fingerprint mod 0.
+ return false;
+#endif
}
int ResolveProxyFromRenderThread(const GURL& url, std::string* proxy_result) {