diff --git a/browser/brave_local_state_prefs.cc b/browser/brave_local_state_prefs.cc index 3e90af8f9eb3..0942c278d5c3 100644 --- a/browser/brave_local_state_prefs.cc +++ b/browser/brave_local_state_prefs.cc @@ -44,7 +44,7 @@ namespace brave { void RegisterLocalStatePrefs(PrefRegistrySimple* registry) { brave_shields::RegisterPrefsForAdBlockService(registry); RegisterPrefsForBraveStatsUpdater(registry); - registry->RegisterBooleanPref(kRemoteDebuggingEnabled, false); + registry->RegisterBooleanPref(kRemoteDebuggingEnabled, true); ntp_background_images::NTPBackgroundImagesService::RegisterLocalStatePrefs( registry); #if BUILDFLAG(ENABLE_BRAVE_REFERRALS) diff --git a/chromium_src/chrome/browser/devtools/url_constants.cc b/chromium_src/chrome/browser/devtools/url_constants.cc new file mode 100644 index 000000000000..7c2c1ae1c883 --- /dev/null +++ b/chromium_src/chrome/browser/devtools/url_constants.cc @@ -0,0 +1,11 @@ +/* Copyright (c) 2020 The Brave Authors. All rights reserved. + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "chrome/browser/devtools/url_constants.h" + +const char kRemoteFrontendDomain[] = "devtools.brave.com"; +const char kRemoteFrontendBase[] = + "https://devtools.brave.com/"; +const char kRemoteFrontendPath[] = "serve_file"; diff --git a/chromium_src/chrome/browser/devtools/url_constants_unittest.cc b/chromium_src/chrome/browser/devtools/url_constants_unittest.cc new file mode 100644 index 000000000000..18d7034764a9 --- /dev/null +++ b/chromium_src/chrome/browser/devtools/url_constants_unittest.cc @@ -0,0 +1,13 @@ +/* Copyright (c) 2020 The Brave Authors. All rights reserved. + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "chrome/browser/ui/webui/devtools_ui.h" +#include "testing/gtest/include/gtest/gtest.h" + +const char kBraveDevtoolsURLHost[] = "devtools.brave.com"; + +TEST(BraveDevtoolsURLConstants, TestDevtoolsURL) { + EXPECT_EQ(DevToolsUI::GetRemoteBaseURL().host(), kBraveDevtoolsURLHost); +} diff --git a/test/BUILD.gn b/test/BUILD.gn index 4636e6eec314..1ebe70ed2f88 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -93,6 +93,7 @@ test("brave_unit_tests") { "//brave/browser/net/brave_site_hacks_network_delegate_helper_unittest.cc", "//brave/browser/net/brave_static_redirect_network_delegate_helper_unittest.cc", "//brave/browser/net/brave_system_request_handler_unittest.cc", + "//brave/chromium_src/chrome/browser/devtools/url_constants_unittest.cc", "//brave/chromium_src/chrome/browser/history/history_utils_unittest.cc", "//brave/chromium_src/chrome/browser/shell_integration_unittest_mac.cc", "//brave/chromium_src/chrome/browser/signin/account_consistency_disabled_unittest.cc",