This reverts commit 7b169c2884
.
This commit is contained in:
parent
c252deb878
commit
fa0323a3db
4 changed files with 0 additions and 42 deletions
|
@ -155,7 +155,6 @@ std::u16string MediaStringProvider(media::MessageId id) {
|
|||
}
|
||||
|
||||
#if defined(OS_LINUX)
|
||||
|
||||
void OverrideLinuxAppDataPath() {
|
||||
base::FilePath path;
|
||||
if (base::PathService::Get(DIR_APP_DATA, &path))
|
||||
|
@ -376,24 +375,8 @@ void ElectronBrowserMainParts::PostDestroyThreads() {
|
|||
fake_browser_process_->PostDestroyThreads();
|
||||
}
|
||||
|
||||
#if defined(OS_LINUX)
|
||||
// static
|
||||
base::Optional<std::string>& ElectronBrowserMainParts::GetGDKBackend() {
|
||||
static base::Optional<std::string> gdk_backend;
|
||||
return gdk_backend;
|
||||
}
|
||||
#endif
|
||||
|
||||
void ElectronBrowserMainParts::ToolkitInitialized() {
|
||||
#if defined(OS_LINUX)
|
||||
// This is set by Chromium here:
|
||||
// https://chromium-review.googlesource.com/c/chromium/src/+/2586184
|
||||
// and can detrimentally affect external app behaviors, so we want to
|
||||
// check if the user has set it so we can use it later.
|
||||
std::string backend;
|
||||
if (base::Environment::Create()->GetVar("GDK_BACKEND", &backend))
|
||||
GetGDKBackend().reset(backend);
|
||||
|
||||
auto linux_ui = BuildGtkUi();
|
||||
linux_ui->Initialize();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue