Merge pull request #7527 from electron/only-set-global-app-name-on-audio-manager-on-linux

Only call media::AudioManager::SetGlobalAppName on Linux
This commit is contained in:
Kevin Sawicki 2016-10-07 14:04:03 -07:00 committed by GitHub
commit 913bc8e198

View file

@ -491,9 +491,11 @@ void App::OnWillFinishLaunching() {
} }
void App::OnFinishLaunching(const base::DictionaryValue& launch_info) { void App::OnFinishLaunching(const base::DictionaryValue& launch_info) {
#if defined(OS_LINUX)
// Set the application name for audio streams shown in external // Set the application name for audio streams shown in external
// applications. Only affects pulseaudio currently. // applications. Only affects pulseaudio currently.
media::AudioManager::SetGlobalAppName(Browser::Get()->GetName()); media::AudioManager::SetGlobalAppName(Browser::Get()->GetName());
#endif
Emit("ready", launch_info); Emit("ready", launch_info);
} }