Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jumde committed May 25, 2018
1 parent e20eccc commit 3dcb70c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/brave_main_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,14 @@ bool BraveMainDelegate::ShouldEnableProfilerRecording() {
return false;
}

void BraveMainDelegate::PreSandboxStartup() {
ChromeMainDelegate::PreSandboxStartup();

void BraveMainDelegate::DisableAPIs() {
blink::WebRuntimeFeatures::EnableWebUsb(false);
blink::WebRuntimeFeatures::EnableWebBluetooth(false);
blink::WebRuntimeFeatures::EnableSharedArrayBuffer(false);
}

void BraveMainDelegate::PreSandboxStartup() {
ChromeMainDelegate::PreSandboxStartup();

#if defined(OS_POSIX)
// Setup NativeMessagingHosts to point to the default Chrome locations
Expand Down
1 change: 1 addition & 0 deletions app/brave_main_delegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class BraveMainDelegate : public ChromeMainDelegate {
content::ContentUtilityClient* CreateContentUtilityClient() override;
void PreSandboxStartup() override;

void DisableAPIs();
DISALLOW_COPY_AND_ASSIGN(BraveMainDelegate);
};

Expand Down

0 comments on commit 3dcb70c

Please sign in to comment.