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

Unified Diff: content/shell/shell_content_browser_client.cc

Issue 8588039: Remove "open in new tab" items from context menu if the process doesn't (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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/shell/shell_content_browser_client.cc
===================================================================
--- content/shell/shell_content_browser_client.cc (revision 113019)
+++ content/shell/shell_content_browser_client.cc (working copy)
@@ -9,6 +9,7 @@
#include "content/shell/shell.h"
#include "content/shell/shell_browser_main.h"
#include "googleurl/src/gurl.h"
+#include "net/url_request/url_request.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "webkit/glue/webpreferences.h"
@@ -82,6 +83,10 @@
return false;
}
+bool ShellContentBrowserClient::IsHandledURL(const GURL& url) {
+ return net::URLRequest::IsHandledURL();
+}
+
bool ShellContentBrowserClient::IsSuitableHost(
RenderProcessHost* process_host,
const GURL& site_url) {

Powered by Google App Engine
This is Rietveld 408576698