refactor: move devtools from brightray to atom (#15234)
This commit is contained in:
parent
122017e6fa
commit
6f3c46cc7e
58 changed files with 315 additions and 400 deletions
|
@ -23,9 +23,7 @@
|
|||
#include "base/strings/string_number_conversions.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "brightray/browser/browser_client.h"
|
||||
#include "brightray/browser/devtools_manager_delegate.h"
|
||||
#include "brightray/browser/media/media_capture_devices_dispatcher.h"
|
||||
#include "brightray/browser/web_ui_controller_factory.h"
|
||||
#include "brightray/common/application_info.h"
|
||||
#include "brightray/common/main_delegate.h"
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
|
@ -275,16 +273,6 @@ void BrowserMainParts::PreMainMessageLoopStart() {
|
|||
media::SetLocalizedStringProvider(MediaStringProvider);
|
||||
}
|
||||
|
||||
void BrowserMainParts::PreMainMessageLoopRun() {
|
||||
content::WebUIControllerFactory::RegisterFactory(
|
||||
WebUIControllerFactory::GetInstance());
|
||||
|
||||
// --remote-debugging-port
|
||||
auto* command_line = base::CommandLine::ForCurrentProcess();
|
||||
if (command_line->HasSwitch(switches::kRemoteDebuggingPort))
|
||||
DevToolsManagerDelegate::StartHttpHandler();
|
||||
}
|
||||
|
||||
void BrowserMainParts::PostMainMessageLoopStart() {
|
||||
#if defined(USE_X11)
|
||||
// Installs the X11 error handlers for the browser process after the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue