Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4996)

Unified Diff: chrome/browser/chrome_browser_main_linux.cc

Issue 1317033006: Linux: Do not use a hard coded app name for PulseAudio output. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/audio/audio_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main_linux.cc
diff --git a/chrome/browser/chrome_browser_main_linux.cc b/chrome/browser/chrome_browser_main_linux.cc
index 1ad6b07473c4abc003b672a0111699bc32197412..4f4e4abd69d6f68d8dd6d5ab9ac2268afa29a764 100644
--- a/chrome/browser/chrome_browser_main_linux.cc
+++ b/chrome/browser/chrome_browser_main_linux.cc
@@ -7,8 +7,11 @@
#include <fontconfig/fontconfig.h>
#include "chrome/browser/browser_process.h"
+#include "chrome/grit/chromium_strings.h"
#include "components/crash/app/breakpad_linux.h"
#include "components/metrics/metrics_service.h"
+#include "media/audio/audio_manager.h"
+#include "ui/base/l10n/l10n_util.h"
#if !defined(OS_CHROMEOS)
#include "base/linux_util.h"
@@ -47,6 +50,9 @@ void ChromeBrowserMainPartsLinux::PreProfileInit() {
base::Bind(&sxs_linux::AddChannelMarkToUserDataDir));
#endif
+ media::AudioManager::SetGlobalAppName(
+ l10n_util::GetStringUTF8(IDS_SHORT_PRODUCT_NAME));
+
ChromeBrowserMainPartsPosix::PreProfileInit();
}
« no previous file with comments | « no previous file | media/audio/audio_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698