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

Unified Diff: chrome/test/base/chrome_render_view_test.cc

Issue 2085443002: Remove the need for copy-pasting code in ChromeRenderViewTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove one more forgotten include. Created 4 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
« no previous file with comments | « chrome/test/base/chrome_render_view_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/chrome_render_view_test.cc
diff --git a/chrome/test/base/chrome_render_view_test.cc b/chrome/test/base/chrome_render_view_test.cc
index 68994cc4d6f63fc973c6ec1d9f11466b48ff17b0..44964164c1ae9b1e2aacfc660c0d4cbb46fb5690 100644
--- a/chrome/test/base/chrome_render_view_test.cc
+++ b/chrome/test/base/chrome_render_view_test.cc
@@ -137,6 +137,12 @@ ChromeRenderViewTest::CreateContentBrowserClient() {
content::ContentRendererClient*
ChromeRenderViewTest::CreateContentRendererClient() {
ChromeContentRendererClient* client = new ChromeContentRendererClient();
+ InitChromeContentRendererClient(client);
+ return client;
+}
+
+void ChromeRenderViewTest::InitChromeContentRendererClient(
+ ChromeContentRendererClient* client) {
#if defined(ENABLE_EXTENSIONS)
extension_dispatcher_delegate_.reset(
new ChromeExtensionsDispatcherDelegate());
@@ -148,7 +154,6 @@ ChromeRenderViewTest::CreateContentRendererClient() {
#if defined(ENABLE_SPELLCHECK)
client->SetSpellcheck(new SpellCheck());
#endif
- return client;
}
void ChromeRenderViewTest::EnableUserGestureSimulationForAutofill() {
« no previous file with comments | « chrome/test/base/chrome_render_view_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698