"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "shell/browser/feature_list.cc" between
electron-11.4.1.tar.gz and electron-11.4.2.tar.gz

About: Electron is a framework for creating native cross platform applications with web technologies like JavaScript, HTML, and CSS.

feature_list.cc  (electron-11.4.1):feature_list.cc  (electron-11.4.2)
skipping to change at line 12 skipping to change at line 12
// Use of this source code is governed by the MIT license that can be // Use of this source code is governed by the MIT license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "electron/shell/browser/feature_list.h" #include "electron/shell/browser/feature_list.h"
#include <string> #include <string>
#include "base/base_switches.h" #include "base/base_switches.h"
#include "base/command_line.h" #include "base/command_line.h"
#include "base/feature_list.h" #include "base/feature_list.h"
#include "base/metrics/field_trial.h"
#include "content/public/common/content_features.h" #include "content/public/common/content_features.h"
#include "electron/buildflags/buildflags.h" #include "electron/buildflags/buildflags.h"
#include "media/base/media_switches.h" #include "media/base/media_switches.h"
#include "net/base/features.h" #include "net/base/features.h"
namespace electron { namespace electron {
void InitializeFeatureList() { void InitializeFeatureList() {
auto* cmd_line = base::CommandLine::ForCurrentProcess(); auto* cmd_line = base::CommandLine::ForCurrentProcess();
auto enable_features = auto enable_features =
skipping to change at line 51 skipping to change at line 52
// Any website which uses older WebComponents will fail in without this // Any website which uses older WebComponents will fail in without this
// enabled, since Electron does not support origin trials. // enabled, since Electron does not support origin trials.
enable_features += std::string(",") + "WebComponentsV0Enabled"; enable_features += std::string(",") + "WebComponentsV0Enabled";
#if !BUILDFLAG(ENABLE_PICTURE_IN_PICTURE) #if !BUILDFLAG(ENABLE_PICTURE_IN_PICTURE)
disable_features += std::string(",") + media::kPictureInPicture.name; disable_features += std::string(",") + media::kPictureInPicture.name;
#endif #endif
base::FeatureList::InitializeInstance(enable_features, disable_features); base::FeatureList::InitializeInstance(enable_features, disable_features);
} }
void InitializeFieldTrials() {
auto* cmd_line = base::CommandLine::ForCurrentProcess();
auto force_fieldtrials =
cmd_line->GetSwitchValueASCII(::switches::kForceFieldTrials);
base::FieldTrialList::CreateTrialsFromString(force_fieldtrials);
}
} // namespace electron } // namespace electron
 End of changes. 2 change blocks. 
0 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)