Index: chrome/browser/visitedlink/visitedlink_unittest.cc |
diff --git a/chrome/browser/visitedlink/visitedlink_unittest.cc b/chrome/browser/visitedlink/visitedlink_unittest.cc |
index 86362a1a44d71c06514b63b7e394ccd53f0202da..3af51134df833ab546e3be4ccd27ce245e13c500 100644 |
--- a/chrome/browser/visitedlink/visitedlink_unittest.cc |
+++ b/chrome/browser/visitedlink/visitedlink_unittest.cc |
@@ -524,7 +524,8 @@ class VisitRelayingRenderProcessHost : public BrowserRenderProcessHost { |
virtual bool Send(IPC::Message* msg) { |
VisitCountingProfile* counting_profile = |
- static_cast<VisitCountingProfile*>(profile()); |
+ static_cast<VisitCountingProfile*>( |
+ Profile::FromBrowserContext(browser_context())); |
if (msg->type() == ViewMsg_VisitedLink_Add::ID) { |
void* iter = NULL; |