Skip to content

Commit

Permalink
Remove unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
simoarpe committed Nov 27, 2024
1 parent e6ca8d1 commit 36bb32d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
19 changes: 9 additions & 10 deletions browser/brave_browser_main_parts.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#include "chrome/browser/ui/browser_finder.h"
#include "components/infobars/content/content_infobar_manager.h"
#else
#include "brave/browser/android/background_video/features.h"
#include "brave/components/youtube_script_injector/common/features.h"
#endif

#if BUILDFLAG(ETHEREUM_REMOTE_CLIENT_ENABLED) && BUILDFLAG(ENABLE_EXTENSIONS)
Expand Down Expand Up @@ -199,15 +199,14 @@ void ChromeBrowserMainParts::PostProfileInit(Profile* profile,
ChromeBrowserMainParts_ChromiumImpl::PostProfileInit(profile,
is_initial_profile);

#if BUILDFLAG(IS_ANDROID)
if (base::FeatureList::IsEnabled(
preferences::features::kBraveBackgroundVideoPlayback) ||
profile->GetPrefs()->GetBoolean(kBackgroundVideoPlaybackEnabled)) {
content::RenderFrameHost::AllowInjectingJavaScript();
auto* command_line = base::CommandLine::ForCurrentProcess();
command_line->AppendSwitch(switches::kDisableBackgroundMediaSuspend);
}
#endif
#if BUILDFLAG(IS_ANDROID)
if (base::FeatureList::IsEnabled(
youtube_script_injector::features::kBraveYouTubeScriptInjector) ||
profile->GetPrefs()->GetBoolean(kBackgroundVideoPlaybackEnabled)) {
auto* command_line = base::CommandLine::ForCurrentProcess();
command_line->AppendSwitch(switches::kDisableBackgroundMediaSuspend);
}
#endif

#if BUILDFLAG(ETHEREUM_REMOTE_CLIENT_ENABLED) && BUILDFLAG(ENABLE_EXTENSIONS)
extensions::ExtensionService* service =
Expand Down
2 changes: 0 additions & 2 deletions browser/sources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,6 @@ if (is_android) {

brave_chrome_browser_deps += [
"//brave/browser/android:android_browser_process",
"//brave/browser/android/background_video",
"//brave/browser/android/background_video:features",
"//brave/browser/android/preferences",
"//brave/browser/android/safe_browsing:buildflags",
"//brave/browser/brave_ads/android",
Expand Down

0 comments on commit 36bb32d

Please sign in to comment.