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

Unified Diff: chrome/gpu/chrome_content_gpu_client.h

Issue 2034933002: Make field trials activated in the GPU process be reflected in browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a unit test for child_process_field_trial_syncer.cc 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
Index: chrome/gpu/chrome_content_gpu_client.h
diff --git a/chrome/gpu/chrome_content_gpu_client.h b/chrome/gpu/chrome_content_gpu_client.h
index 4789cfb6830d7b394b9a2047330eeb872844250d..f53b0b0354f60766bd5b25ea0a04867701d371fa 100644
--- a/chrome/gpu/chrome_content_gpu_client.h
+++ b/chrome/gpu/chrome_content_gpu_client.h
@@ -5,7 +5,10 @@
#ifndef CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_
#define CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_
+#include <memory>
+
#include "base/macros.h"
+#include "chrome/common/variations/child_process_field_trial_syncer.h"
#include "content/public/gpu/content_gpu_client.h"
class ChromeContentGpuClient : public content::ContentGpuClient {
@@ -13,10 +16,14 @@ class ChromeContentGpuClient : public content::ContentGpuClient {
ChromeContentGpuClient();
~ChromeContentGpuClient() override;
- // content::ContentGpuClient implementation.
+ // content::ContentGpuClient:
+ void Initialize(base::FieldTrialList::Observer* observer) override;
void RegisterMojoServices(content::ServiceRegistry* registry) override;
private:
+ std::unique_ptr<chrome_variations::ChildProcessFieldTrialSyncer>
+ field_trial_syncer_;
+
DISALLOW_COPY_AND_ASSIGN(ChromeContentGpuClient);
};

Powered by Google App Engine
This is Rietveld 408576698