diff --git a/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc b/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc index 58f4af4a06e39..f3eca5130dad3 100644 --- a/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc +++ b/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc @@ -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. diff --git a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc index e746593600adc..2612641ca67b7 100644 --- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc +++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc @@ -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)