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

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

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works now 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 54fa310b49af95b3f6c8e63bb1eb0afbbfd263e3..99994779a24c365e38dbea6511e23e9ebf4ae5d8 100644
--- a/chrome/browser/visitedlink/visitedlink_unittest.cc
+++ b/chrome/browser/visitedlink/visitedlink_unittest.cc
@@ -493,8 +493,8 @@ class VisitCountingProfile : public TestingProfile {
// Stub out as little as possible, borrowing from BrowserRenderProcessHost.
class VisitRelayingRenderProcessHost : public BrowserRenderProcessHost {
public:
- explicit VisitRelayingRenderProcessHost(Profile* profile)
- : BrowserRenderProcessHost(profile) {
+ explicit VisitRelayingRenderProcessHost(content::BrowserContext* context)
+ : BrowserRenderProcessHost(context) {
NotificationService::current()->Notify(
content::NOTIFICATION_RENDERER_PROCESS_CREATED,
Source<RenderProcessHost>(this), NotificationService::NoDetails());
@@ -551,8 +551,9 @@ class VisitedLinkRenderProcessHostFactory
public:
VisitedLinkRenderProcessHostFactory()
: RenderProcessHostFactory() {}
- virtual RenderProcessHost* CreateRenderProcessHost(Profile* profile) const {
- return new VisitRelayingRenderProcessHost(profile);
+ virtual RenderProcessHost* CreateRenderProcessHost(
+ content::BrowserContext* context) const {
+ return new VisitRelayingRenderProcessHost(context);
}
private:

Powered by Google App Engine
This is Rietveld 408576698