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

Unified Diff: content/renderer/render_thread_impl.h

Issue 2732213004: Move FieldTrialRecorder mojom to content (Closed)
Patch Set: initialize FieldTrialList for RenderThreadImplBrowserTest Created 3 years, 9 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/DEPS ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 7100b0c47d514e3a50f0ad4e7b0ec30c5211d65c..c924093b3ff8364679df7bc58d1fdadaa919fc28 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -18,12 +18,14 @@
#include "base/memory/memory_coordinator_client.h"
#include "base/memory/memory_pressure_listener.h"
#include "base/memory/ref_counted.h"
+#include "base/metrics/field_trial.h"
#include "base/metrics/user_metrics_action.h"
#include "base/observer_list.h"
#include "base/strings/string16.h"
#include "base/threading/thread_checker.h"
#include "base/timer/timer.h"
#include "build/build_config.h"
+#include "components/variations/child_process_field_trial_syncer.h"
#include "content/child/child_thread_impl.h"
#include "content/child/memory/child_memory_coordinator_impl.h"
#include "content/common/associated_interface_registry_impl.h"
@@ -158,6 +160,7 @@ class CONTENT_EXPORT RenderThreadImpl
public blink::scheduler::RendererScheduler::RAILModeObserver,
public ChildMemoryCoordinatorDelegate,
public base::MemoryCoordinatorClient,
+ public base::FieldTrialList::Observer,
NON_EXPORTED_BASE(public mojom::Renderer),
NON_EXPORTED_BASE(public CompositorDependencies) {
public:
@@ -211,6 +214,8 @@ class CONTENT_EXPORT RenderThreadImpl
int32_t GetClientId() override;
scoped_refptr<base::SingleThreadTaskRunner> GetTimerTaskRunner() override;
scoped_refptr<base::SingleThreadTaskRunner> GetLoadingTaskRunner() override;
+ void SetFieldTrialGroup(const std::string& trial_name,
+ const std::string& group_name) override;
// IPC::Listener implementation via ChildThreadImpl:
void OnAssociatedInterfaceRequest(
@@ -540,6 +545,10 @@ class CONTENT_EXPORT RenderThreadImpl
void OnTransferBitmap(const SkBitmap& bitmap, int resource_id);
void OnGetAccessibilityTree();
+ // base::FieldTrialList::Observer:
+ void OnFieldTrialGroupFinalized(const std::string& trial_name,
+ const std::string& group_name) override;
+
// mojom::Renderer:
void CreateView(mojom::CreateViewParamsPtr params) override;
void CreateFrame(mojom::CreateFrameParamsPtr params) override;
@@ -774,6 +783,8 @@ class CONTENT_EXPORT RenderThreadImpl
int32_t client_id_;
+ variations::ChildProcessFieldTrialSyncer field_trial_syncer_;
+
DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
};
« no previous file with comments | « content/renderer/DEPS ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698