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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 974933002: content: Refactor ChildThreadImpl::Options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 5 years, 10 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/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index 1064a70adc111cae2969eafde6b6368b4335d886..901618e29fdb5f4dfe58a00433e34f618b0645c6 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -45,17 +45,17 @@ bool GpuProcessLogMessageHandler(int severity,
}
ChildThreadImpl::Options GetOptions() {
- ChildThreadImpl::Options options;
+ ChildThreadImpl::Options::Builder builder;
#if defined(USE_OZONE)
IPC::MessageFilter* message_filter = ui::OzonePlatform::GetInstance()
->GetGpuPlatformSupport()
->GetMessageFilter();
if (message_filter)
- options.startup_filters.push_back(message_filter);
+ builder.AddStartupFilter(message_filter);
#endif
- return options;
+ return builder.Build();
}
} // namespace
@@ -77,7 +77,10 @@ GpuChildThread::GpuChildThread(GpuWatchdogThread* watchdog_thread,
}
GpuChildThread::GpuChildThread(const std::string& channel_id)
- : ChildThreadImpl(Options(channel_id, false)),
+ : ChildThreadImpl(Options::Builder()
+ .InBrowserProcess(true)
+ .WithChannelName(channel_id)
+ .Build()),
dead_on_arrival_(false),
in_browser_process_(true) {
#if defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698