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

Unified Diff: content/browser/renderer_host/mock_render_process_host.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: slight tweaking for comments 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: content/browser/renderer_host/mock_render_process_host.cc
diff --git a/content/browser/renderer_host/mock_render_process_host.cc b/content/browser/renderer_host/mock_render_process_host.cc
index 4b27ce3e49da30108f2b223efb5416ac07542aee..87ec8de1eb291f1a77cd65d70bac1336162c37c1 100644
--- a/content/browser/renderer_host/mock_render_process_host.cc
+++ b/content/browser/renderer_host/mock_render_process_host.cc
@@ -6,11 +6,12 @@
#include "content/browser/child_process_security_policy.h"
-MockRenderProcessHost::MockRenderProcessHost(Profile* profile)
- : RenderProcessHost(profile),
- transport_dib_(NULL),
- bad_msg_count_(0),
- factory_(NULL) {
+MockRenderProcessHost::MockRenderProcessHost(
+ content::BrowserContext* browser_context)
+ : RenderProcessHost(browser_context),
+ transport_dib_(NULL),
+ bad_msg_count_(0),
+ factory_(NULL) {
// Child process security operations can't be unit tested unless we add
// ourselves as an existing child process.
ChildProcessSecurityPolicy::GetInstance()->Add(id());
@@ -127,8 +128,8 @@ MockRenderProcessHostFactory::~MockRenderProcessHostFactory() {
}
RenderProcessHost* MockRenderProcessHostFactory::CreateRenderProcessHost(
- Profile* profile) const {
- MockRenderProcessHost* host = new MockRenderProcessHost(profile);
+ content::BrowserContext* browser_context) const {
+ MockRenderProcessHost* host = new MockRenderProcessHost(browser_context);
if (host) {
processes_.push_back(host);
host->SetFactory(this);
« no previous file with comments | « content/browser/renderer_host/mock_render_process_host.h ('k') | content/browser/renderer_host/pepper_file_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698