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

Unified Diff: content/browser/webui/web_ui_impl.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/webui/web_ui_impl.cc
===================================================================
--- content/browser/webui/web_ui_impl.cc (revision 120814)
+++ content/browser/webui/web_ui_impl.cc (working copy)
@@ -9,7 +9,7 @@
#include "base/stl_util.h"
#include "base/utf_string_conversions.h"
#include "base/values.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/browser/renderer_host/render_view_host.h"
#include "content/browser/tab_contents/tab_contents.h"
@@ -79,7 +79,7 @@
void WebUIImpl::OnWebUISend(const GURL& source_url,
const std::string& message,
const ListValue& args) {
- if (!ChildProcessSecurityPolicy::GetInstance()->
+ if (!ChildProcessSecurityPolicyImpl::GetInstance()->
HasWebUIBindings(web_contents_->GetRenderProcessHost()->GetID())) {
NOTREACHED() << "Blocked unauthorized use of WebUIBindings.";
return;

Powered by Google App Engine
This is Rietveld 408576698