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

Unified Diff: content/browser/site_instance_unittest.cc

Issue 7274031: Wholesale move of debugger sources to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OWNERS and DEPS. Created 9 years, 6 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
Index: content/browser/site_instance_unittest.cc
diff --git a/content/browser/site_instance_unittest.cc b/content/browser/site_instance_unittest.cc
index 4fb36704f9d56247f7c705957269cc6884550acd..40b9d8c0823bd83d0e3599c011402eeb6f05b826 100644
--- a/content/browser/site_instance_unittest.cc
+++ b/content/browser/site_instance_unittest.cc
@@ -9,7 +9,7 @@
#include "content/browser/browser_thread.h"
#include "content/browser/browsing_instance.h"
#include "content/browser/child_process_security_policy.h"
-#include "content/browser/content_browser_client.h"
+#include "content/browser/mock_content_browser_client.h"
#include "content/browser/renderer_host/browser_render_process_host.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/renderer_host/test_render_view_host.h"
@@ -36,7 +36,7 @@ class SiteInstanceTestWebUIFactory : public content::EmptyWebUIFactory {
}
};
-class SiteInstanceTestBrowserClient : public content::ContentBrowserClient {
+class SiteInstanceTestBrowserClient : public content::MockContentBrowserClient {
public:
virtual content::WebUIFactory* GetWebUIFactory() OVERRIDE {
return &factory_;
@@ -47,6 +47,10 @@ class SiteInstanceTestBrowserClient : public content::ContentBrowserClient {
url == GURL(chrome::kAboutCrashURL);
}
+ virtual GURL GetEffectiveURL(Profile* profile, const GURL& url) OVERRIDE {
+ return url;
+ }
+
private:
SiteInstanceTestWebUIFactory factory_;
};

Powered by Google App Engine
This is Rietveld 408576698