mirror of
https://github.com/electron/electron.git
synced 2026-01-29 09:18:18 -05:00
Initialize FeatureList
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "common/main_delegate.h"
|
||||
|
||||
#include "base/command_line.h"
|
||||
#include "base/feature_list.h"
|
||||
#include "base/strings/string_number_conversions.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "components/devtools_http_handler/devtools_http_handler.h"
|
||||
@@ -153,6 +154,10 @@ BrowserMainParts::~BrowserMainParts() {
|
||||
}
|
||||
|
||||
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)
|
||||
views::LinuxUI::SetInstance(BuildGtk2UI());
|
||||
OverrideLinuxAppDataPath();
|
||||
|
||||
Reference in New Issue
Block a user