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

Unified Diff: content/browser/webui/web_ui_impl.cc

Issue 10154004: re-use WebUIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WeakPtr solution Created 8 years, 8 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
« no previous file with comments | « content/browser/webui/web_ui_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
}
« no previous file with comments | « content/browser/webui/web_ui_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698