Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3583)

Unified Diff: chrome/browser/visitedlink/visitedlink_unittest.cc

Issue 7480028: Removal of Profile from content part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698