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

Unified Diff: chrome/browser/field_trial_recorder.cc

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 | « chrome/browser/field_trial_recorder.h ('k') | chrome/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/field_trial_recorder.cc
diff --git a/chrome/browser/field_trial_recorder.cc b/chrome/browser/field_trial_recorder.cc
deleted file mode 100644
index 6a2e48cd82ba090f2283a9d1a3b17299cd6f05e0..0000000000000000000000000000000000000000
--- a/chrome/browser/field_trial_recorder.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/field_trial_recorder.h"
-
-#include "base/memory/ptr_util.h"
-#include "base/metrics/field_trial.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
-
-FieldTrialRecorder::FieldTrialRecorder() = default;
-
-FieldTrialRecorder::~FieldTrialRecorder() = default;
-
-// static
-void FieldTrialRecorder::Create(
- chrome::mojom::FieldTrialRecorderRequest request) {
- mojo::MakeStrongBinding(base::MakeUnique<FieldTrialRecorder>(),
- std::move(request));
-}
-
-void FieldTrialRecorder::FieldTrialActivated(const std::string& trial_name) {
- DCHECK(thread_checker_.CalledOnValidThread());
- // Activate the trial in the browser process to match its state in the
- // renderer. This is done by calling FindFullName which finalizes the group
- // and activates the trial.
- base::FieldTrialList::FindFullName(trial_name);
-}
« no previous file with comments | « chrome/browser/field_trial_recorder.h ('k') | chrome/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698