Initialize FeatureList
This commit is contained in:
parent
76d180a80d
commit
7c39075c2c
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include "common/main_delegate.h"
|
#include "common/main_delegate.h"
|
||||||
|
|
||||||
#include "base/command_line.h"
|
#include "base/command_line.h"
|
||||||
|
#include "base/feature_list.h"
|
||||||
#include "base/strings/string_number_conversions.h"
|
#include "base/strings/string_number_conversions.h"
|
||||||
#include "base/strings/utf_string_conversions.h"
|
#include "base/strings/utf_string_conversions.h"
|
||||||
#include "components/devtools_http_handler/devtools_http_handler.h"
|
#include "components/devtools_http_handler/devtools_http_handler.h"
|
||||||
|
@ -153,6 +154,10 @@ BrowserMainParts::~BrowserMainParts() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void BrowserMainParts::PreEarlyInitialization() {
|
void BrowserMainParts::PreEarlyInitialization() {
|
||||||
|
std::unique_ptr<base::FeatureList> feature_list(new base::FeatureList);
|
||||||
|
feature_list->InitializeFromCommandLine("", "");
|
||||||
|
base::FeatureList::SetInstance(std::move(feature_list));
|
||||||
|
|
||||||
#if defined(USE_X11)
|
#if defined(USE_X11)
|
||||||
views::LinuxUI::SetInstance(BuildGtk2UI());
|
views::LinuxUI::SetInstance(BuildGtk2UI());
|
||||||
OverrideLinuxAppDataPath();
|
OverrideLinuxAppDataPath();
|
||||||
|
|
Loading…
Add table
Reference in a new issue