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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2803743002: Mojofy GpuHostMsg_FieldTrialActivated (Closed)
Patch Set: review Created 3 years, 8 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/gpu/BUILD.gn ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index f55da61add2265e698e330d6c7358038888862e3..af96469235edbb36ee3171f58fd0260ea8e0cd0c 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -11,16 +11,18 @@
#include "base/callback_helpers.h"
#include "build/build_config.h"
#include "content/child/child_process.h"
-#include "content/common/gpu_host_messages.h"
+#include "content/common/field_trial_recorder.mojom.h"
#include "content/gpu/gpu_service_factory.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/service_manager_connection.h"
+#include "content/public/common/service_names.mojom.h"
#include "content/public/gpu/content_gpu_client.h"
#include "gpu/command_buffer/common/activity_flags.h"
#include "gpu/ipc/service/gpu_watchdog_thread.h"
#include "ipc/ipc_sync_message_filter.h"
#include "media/gpu/ipc/service/media_gpu_channel_manager.h"
+#include "services/service_manager/public/cpp/connector.h"
#include "services/service_manager/public/cpp/interface_registry.h"
#include "services/ui/gpu/interfaces/gpu_service.mojom.h"
@@ -130,7 +132,10 @@ void GpuChildThread::Init(const base::Time& process_start_time) {
void GpuChildThread::OnFieldTrialGroupFinalized(const std::string& trial_name,
const std::string& group_name) {
- Send(new GpuHostMsg_FieldTrialActivated(trial_name));
+ mojom::FieldTrialRecorderPtr field_trial_recorder;
+ GetConnector()->BindInterface(mojom::kBrowserServiceName,
+ &field_trial_recorder);
+ field_trial_recorder->FieldTrialActivated(trial_name);
}
void GpuChildThread::CreateGpuMainService(
« no previous file with comments | « content/gpu/BUILD.gn ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698