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

Unified Diff: content/renderer/render_thread_impl_browsertest.cc

Issue 830273003: Remove impl-side-painting from about:flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: impl-flags: remove-content-shell-stuff Created 5 years, 11 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/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl_browsertest.cc
diff --git a/content/renderer/render_thread_impl_browsertest.cc b/content/renderer/render_thread_impl_browsertest.cc
index 1262fd15bffcc30998f64a6575b754b1eabfe05f..3e4a795a9ed38a01ac1e9d9cf937ced534b98c08 100644
--- a/content/renderer/render_thread_impl_browsertest.cc
+++ b/content/renderer/render_thread_impl_browsertest.cc
@@ -138,8 +138,16 @@ class RenderThreadImplBrowserTest : public testing::Test {
mock_process_.reset(new MockRenderProcess);
test_task_counter_ = make_scoped_refptr(new TestTaskCounter());
+
+ // RenderThreadImpl expects the browser to pass these flags.
+ base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
+ base::CommandLine::StringVector old_argv = cmd->argv();
+
+ cmd->AppendSwitchASCII(switches::kNumRasterThreads, "1");
thread_ = new RenderThreadImplForTest(test_helper_->GetChannelId(),
test_task_counter_);
+ cmd->InitFromArgv(old_argv);
+
thread_->EnsureWebKitInitialized();
test_msg_filter_ = make_scoped_refptr(
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698