Skip to content

Commit

Permalink
Disable unnecessary BT adaptor query on start
Browse files Browse the repository at this point in the history
Bluetooth query will fail on accessing BT devices when it's not
entitled with `com.apple.security.device.bluetooth`. And disabling
the query won't  prevent using `chrome.bluetooth` APIs.
  • Loading branch information
Cong Liu committed Oct 9, 2016
1 parent 75a3dac commit 1c092d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,13 @@ void RecordStartupMetricsOnBlockingPool() {
#endif // defined(OS_WIN)

#if defined(OS_MACOSX)
#if !defined(NWJS_MAS)
bluetooth_utility::BluetoothAvailability availability =
bluetooth_utility::GetBluetoothAvailability();
UMA_HISTOGRAM_ENUMERATION("OSX.BluetoothAvailability",
availability,
bluetooth_utility::BLUETOOTH_AVAILABILITY_COUNT);
#endif
#endif // defined(OS_MACOSX)

// Record whether Chrome is the default browser or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ EnsureBrowserContextKeyedServiceFactoriesBuilt() {
domain_reliability::DomainReliabilityServiceFactory::GetInstance();
DownloadServiceFactory::GetInstance();
#if defined(ENABLE_EXTENSIONS)
#if !defined(NWJS_MAS)
EasyUnlockServiceFactory::GetInstance();
#endif
EnhancedBookmarkKeyServiceFactory::GetInstance();
#endif
#if defined(OS_CHROMEOS)
Expand Down

0 comments on commit 1c092d6

Please sign in to comment.