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

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

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
===================================================================
--- chrome/browser/visitedlink/visitedlink_unittest.cc (revision 110303)
+++ chrome/browser/visitedlink/visitedlink_unittest.cc (working copy)
@@ -18,7 +18,7 @@
#include "chrome/renderer/visitedlink_slave.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
-#include "content/browser/renderer_host/browser_render_process_host.h"
+#include "content/browser/renderer_host/render_process_host_impl.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
#include "content/test/test_browser_thread.h"
@@ -495,12 +495,12 @@
scoped_ptr<VisitedLinkMaster> visited_link_master_;
};
-// Stub out as little as possible, borrowing from BrowserRenderProcessHost.
-class VisitRelayingRenderProcessHost : public BrowserRenderProcessHost {
+// Stub out as little as possible, borrowing from RenderProcessHost.
+class VisitRelayingRenderProcessHost : public RenderProcessHostImpl {
jam 2011/11/16 22:10:19 this will have to change (in the future), since we
ananta 2011/11/17 13:34:45 Yes. We can mock out the remaining RPH methods or
public:
explicit VisitRelayingRenderProcessHost(
content::BrowserContext* browser_context)
- : BrowserRenderProcessHost(browser_context) {
+ : RenderProcessHostImpl(browser_context) {
content::NotificationService::current()->Notify(
content::NOTIFICATION_RENDERER_PROCESS_CREATED,
content::Source<RenderProcessHost>(this),
@@ -532,7 +532,7 @@
virtual bool Send(IPC::Message* msg) {
VisitCountingProfile* counting_profile =
static_cast<VisitCountingProfile*>(
- Profile::FromBrowserContext(browser_context()));
+ Profile::FromBrowserContext(GetBrowserContext()));
if (msg->type() == ChromeViewMsg_VisitedLink_Add::ID) {
void* iter = NULL;

Powered by Google App Engine
This is Rietveld 408576698