fix: initialize field trial list

https://chromium-review.googlesource.com/c/1402880
This commit is contained in:
Jeremy Apthorp 2019-02-22 16:27:18 -08:00 committed by Samuel Attard
parent d47ed72d17
commit 38c3891337
4 changed files with 3 additions and 23 deletions

View file

@ -284,6 +284,7 @@ void AtomBrowserMainParts::RegisterDestructionCallback(
int AtomBrowserMainParts::PreEarlyInitialization() {
InitializeFeatureList();
field_trial_list_ = std::make_unique<base::FieldTrialList>(nullptr);
OverrideAppLogsPath();
#if defined(USE_X11)
views::LinuxUI::SetInstance(BuildGtkUi());

View file

@ -10,6 +10,7 @@
#include <string>
#include "base/callback.h"
#include "base/metrics/field_trial.h"
#include "base/timer/timer.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_main_parts.h"
@ -126,6 +127,7 @@ class AtomBrowserMainParts : public content::BrowserMainParts {
std::unique_ptr<NodeEnvironment> node_env_;
std::unique_ptr<NodeDebugger> node_debugger_;
std::unique_ptr<IconManager> icon_manager_;
std::unique_ptr<base::FieldTrialList> field_trial_list_;
base::RepeatingTimer gc_timer_;