Index: content/browser/webui/web_ui_impl.cc |
diff --git a/content/browser/webui/web_ui_impl.cc b/content/browser/webui/web_ui_impl.cc |
index dd5d4fc6c556356979a2fd9f2ac124753c6ecebe..455f0383b5f3dcba213d4da0b6ccf17ed34a2e94 100644 |
--- a/content/browser/webui/web_ui_impl.cc |
+++ b/content/browser/webui/web_ui_impl.cc |
@@ -79,14 +79,6 @@ bool WebUIImpl::OnMessageReceived(const IPC::Message& message) { |
void WebUIImpl::OnWebUISend(const GURL& source_url, |
const std::string& message, |
const ListValue& args) { |
- // If the URL comes from a url where the document is not available, that can |
- // only mean that the page navigated or reloaded while a WebUISend IPC was in |
- // flight. We should not handle these orphaned WebUISends. |
- if (document_available_origins_.find(source_url.GetOrigin()) == |
- document_available_origins_.end()) { |
- return; |
- } |
- |
if (!ChildProcessSecurityPolicyImpl::GetInstance()-> |
HasWebUIBindings(web_contents_->GetRenderProcessHost()->GetID())) { |
NOTREACHED() << "Blocked unauthorized use of WebUIBindings."; |
@@ -118,10 +110,6 @@ void WebUIImpl::RenderViewCreated(content::RenderViewHost* render_view_host) { |
render_view_host->SetWebUIProperty("touchOptimized", "true"); |
} |
-void WebUIImpl::DocumentAvailableInFrame(const GURL& source_url) { |
- document_available_origins_.insert(source_url.GetOrigin()); |
-} |
- |
WebContents* WebUIImpl::GetWebContents() const { |
return web_contents_; |
} |