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

Unified Diff: content/shell/shell_content_renderer_client.cc

Issue 12210141: [content shell] delete unused code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « content/shell/shell_content_renderer_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_content_renderer_client.cc
diff --git a/content/shell/shell_content_renderer_client.cc b/content/shell/shell_content_renderer_client.cc
index 990acfce40a07f15dbd8d7f09e7d158828789864..77d3641a41426461ff6aee871c5b308622d66eb2 100644
--- a/content/shell/shell_content_renderer_client.cc
+++ b/content/shell/shell_content_renderer_client.cc
@@ -81,31 +81,4 @@ bool ShellContentRendererClient::OverrideCreatePlugin(
return false;
}
-bool ShellContentRendererClient::WillSendRequest(
- WebFrame* frame,
- PageTransition transition_type,
- const GURL& url,
- const GURL& first_party_for_cookies,
- GURL* new_url) {
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (!command_line->HasSwitch(switches::kDumpRenderTree))
- return false;
- ShellRenderProcessObserver* render_process_observer =
- ShellRenderProcessObserver::GetInstance();
- if (!command_line->HasSwitch(switches::kAllowExternalPages) &&
- IsExternalPage(url) && !IsExternalPage(first_party_for_cookies)) {
- if (render_process_observer->test_delegate()) {
- render_process_observer->test_delegate()->printMessage(
- std::string("Blocked access to external URL " + url.spec() + "\n"));
- }
- *new_url = GURL();
- return true;
- }
- if (render_process_observer->test_delegate()) {
- *new_url = render_process_observer->test_delegate()->rewriteLayoutTestsURL(
- url.spec());
- }
- return true;
-}
-
} // namespace content
« no previous file with comments | « content/shell/shell_content_renderer_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698