fix: Improve --enable-features/--disable-features handling (#13920)

As it turns out, we can reinitialize the feature list directly after the
user JS script has been executed instead of much later. This allows
modifications to `--enable-features`/`--disable-features` to work with a
greater set of features.
This commit is contained in:
Birunthan Mohanathas 2018-08-03 03:53:54 +03:00 committed by Samuel Attard
parent 48ae9b7a9c
commit 23440a5ec3
3 changed files with 10 additions and 12 deletions

View file

@ -43,14 +43,14 @@ class BrowserMainParts : public content::BrowserMainParts {
int PreCreateThreads() override;
void PostDestroyThreads() override;
void InitializeFeatureList();
private:
#if defined(OS_MACOSX)
void InitializeMainNib();
void OverrideAppLogsPath();
#endif
void InitializeFeatureList();
std::unique_ptr<IOThread> io_thread_;
#if defined(USE_AURA)