Skip to content

Commit

Permalink
Enabe mute tab audio
Browse files Browse the repository at this point in the history
  • Loading branch information
bbondy committed Jun 6, 2018
1 parent e77909f commit c898399
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/brave_main_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "brave/utility/brave_content_utility_client.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_paths_internal.h"
#include "chrome/common/chrome_switches.h"

#if !defined(CHROME_MULTIPLE_DLL_BROWSER)
base::LazyInstance<BraveContentRendererClient>::DestructorAtExit
Expand Down Expand Up @@ -93,3 +94,10 @@ void BraveMainDelegate::PreSandboxStartup() {
brave::InitializeResourceBundle();
}
}

bool BraveMainDelegate::BasicStartupComplete(int* exit_code) {
base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
command_line.AppendSwitch(switches::kEnableTabAudioMuting);
return ChromeMainDelegate::BasicStartupComplete(exit_code);
}
1 change: 1 addition & 0 deletions app/brave_main_delegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class BraveMainDelegate : public ChromeMainDelegate {
protected:
// content::ContentMainDelegate implementation:
bool ShouldEnableProfilerRecording() override;
bool BasicStartupComplete(int* exit_code) override;

content::ContentBrowserClient* CreateContentBrowserClient() override;
content::ContentRendererClient* CreateContentRendererClient() override;
Expand Down

0 comments on commit c898399

Please sign in to comment.