chore: rename atom -> electron (#21986)

This commit is contained in:
Jeremy Apthorp 2020-02-04 12:19:40 -08:00 committed by GitHub
parent f14fc4b041
commit d9321f4df7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
287 changed files with 1771 additions and 1708 deletions

View file

@ -25,7 +25,7 @@
#include "gin/dictionary.h"
#include "net/base/directory_lister.h"
#include "net/base/mime_util.h"
#include "shell/browser/atom_browser_context.h"
#include "shell/browser/electron_browser_context.h"
#include "shell/browser/native_window.h"
#include "shell/browser/ui/file_dialog.h"
#include "shell/common/gin_converters/callback_converter.h"
@ -149,8 +149,9 @@ class FileSelectHelper : public base::RefCounted<FileSelectHelper>,
}
if (render_frame_host_ && !paths.empty()) {
auto* browser_context = static_cast<electron::AtomBrowserContext*>(
render_frame_host_->GetProcess()->GetBrowserContext());
auto* browser_context =
static_cast<electron::ElectronBrowserContext*>(
render_frame_host_->GetProcess()->GetBrowserContext());
browser_context->prefs()->SetFilePath(prefs::kSelectFileLastDirectory,
paths[0].DirName());
}
@ -330,7 +331,7 @@ void WebDialogHelper::RunFileChooser(
NOTREACHED();
}
auto* browser_context = static_cast<electron::AtomBrowserContext*>(
auto* browser_context = static_cast<electron::ElectronBrowserContext*>(
render_frame_host->GetProcess()->GetBrowserContext());
settings.default_path = browser_context->prefs()
->GetFilePath(prefs::kSelectFileLastDirectory)