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

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

Issue 9360014: Create a content public browser API around the ChildProcessSecurityPolicy class. The implementati... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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
===================================================================
--- content/browser/renderer_host/mock_render_process_host.cc (revision 120814)
+++ content/browser/renderer_host/mock_render_process_host.cc (working copy)
@@ -7,7 +7,7 @@
#include "base/lazy_instance.h"
#include "base/message_loop.h"
#include "base/time.h"
-#include "content/browser/child_process_security_policy.h"
+#include "content/browser/child_process_security_policy_impl.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
#include "content/common/child_process_host_impl.h"
#include "content/public/browser/notification_service.h"
@@ -25,13 +25,13 @@
fast_shutdown_started_(false) {
// Child process security operations can't be unit tested unless we add
// ourselves as an existing child process.
- ChildProcessSecurityPolicy::GetInstance()->Add(GetID());
+ ChildProcessSecurityPolicyImpl::GetInstance()->Add(GetID());
RenderProcessHostImpl::RegisterHost(GetID(), this);
}
MockRenderProcessHost::~MockRenderProcessHost() {
- ChildProcessSecurityPolicy::GetInstance()->Remove(GetID());
+ ChildProcessSecurityPolicyImpl::GetInstance()->Remove(GetID());
delete transport_dib_;
if (factory_)
factory_->Remove(this);

Powered by Google App Engine
This is Rietveld 408576698