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

Unified Diff: content/browser/mock_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
« no previous file with comments | « content/browser/mock_content_browser_client.h ('k') | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mock_content_browser_client.cc
===================================================================
--- content/browser/mock_content_browser_client.cc (revision 113019)
+++ content/browser/mock_content_browser_client.cc (working copy)
@@ -11,6 +11,7 @@
#include "content/browser/webui/empty_web_ui_factory.h"
#include "content/test/test_tab_contents_view.h"
#include "googleurl/src/gurl.h"
+#include "net/url_request/url_request.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/clipboard/clipboard.h"
#include "webkit/glue/webpreferences.h"
@@ -89,6 +90,10 @@
return false;
}
+bool MockContentBrowserClient::IsHandledURL(const GURL& url) {
+ return net::URLRequest::IsHandledURL(url);
jam 2011/12/07 23:37:05 why isn't the mock impl returning false?
+}
+
bool MockContentBrowserClient::IsSuitableHost(
RenderProcessHost* process_host,
const GURL& site_url) {
« no previous file with comments | « content/browser/mock_content_browser_client.h ('k') | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698