Merge lp:~osomon/oxide/pa-context-app-name into lp:~oxide-developers/oxide/oxide.trunk

Proposed by Olivier Tilloy
Status: Merged
Merged at revision: 1193
Proposed branch: lp:~osomon/oxide/pa-context-app-name
Merge into: lp:~oxide-developers/oxide/oxide.trunk
Diff against target: 51 lines (+21/-0)
3 files modified
patches/pa-context-application-name.patch (+16/-0)
patches/series (+1/-0)
shared/browser/oxide_browser_main_parts.cc (+4/-0)
To merge this branch: bzr merge lp:~osomon/oxide/pa-context-app-name
Reviewer Review Type Date Requested Status
Chris Coulson Approve
Review via email: mp+270721@code.launchpad.net

Commit message

Use the application name for the pulse audio context.

Description of the change

Note: unfortunately I haven’t been able to verify that this actually works, as it seems the behaviour of the trust store on ubuntu touch devices has changed, I don’t get prompted for microphone permission access from unconfined apps like the browser (this used to be the case, see the description of bug #1486645).

I don’t know of a way to list open pulse audio contexts, which I guess would prove that the right name is being used.

To post a comment you must log in.
Revision history for this message
Chris Coulson (chrisccoulson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'patches/pa-context-application-name.patch'
--- patches/pa-context-application-name.patch 1970-01-01 00:00:00 +0000
+++ patches/pa-context-application-name.patch 2015-09-10 17:54:23 +0000
@@ -0,0 +1,16 @@
1# Description: Use the application name for the pulse audio context
2# Bug: https://launchpad.net/bugs/1486645
3# Author: Olivier Tilloy <olivier.tilloy@canonical.com>
4
5diff --git a/media/audio/pulse/audio_manager_pulse.cc b/media/audio/pulse/audio_manager_pulse.cc
6--- a/media/audio/pulse/audio_manager_pulse.cc
7+++ b/media/audio/pulse/audio_manager_pulse.cc
8@@ -248,7 +248,7 @@
9
10 pa_mainloop_api* pa_mainloop_api =
11 pa_threaded_mainloop_get_api(input_mainloop_);
12- input_context_ = pa_context_new(pa_mainloop_api, "Chrome input");
13+ input_context_ = pa_context_new(pa_mainloop_api, GetGlobalAppName().c_str());
14 if (!input_context_)
15 return false;
16
017
=== modified file 'patches/series'
--- patches/series 2015-09-01 21:41:24 +0000
+++ patches/series 2015-09-10 17:54:23 +0000
@@ -35,3 +35,4 @@
35enable-optional-neon-for-skia.patch35enable-optional-neon-for-skia.patch
36add-suggested-filename-to-download-starting-resource-delegate.patch36add-suggested-filename-to-download-starting-resource-delegate.patch
37always-define-angle-commit-hash.patch37always-define-angle-commit-hash.patch
38pa-context-application-name.patch
3839
=== modified file 'shared/browser/oxide_browser_main_parts.cc'
--- shared/browser/oxide_browser_main_parts.cc 2015-07-27 16:40:33 +0000
+++ shared/browser/oxide_browser_main_parts.cc 2015-09-10 17:54:23 +0000
@@ -25,6 +25,7 @@
25#include "EGL/egl.h"25#include "EGL/egl.h"
26#include "gpu/config/gpu_driver_bug_workaround_type.h"26#include "gpu/config/gpu_driver_bug_workaround_type.h"
27#include "gpu/config/gpu_info_collector.h"27#include "gpu/config/gpu_info_collector.h"
28#include "media/audio/audio_manager.h"
28#include "net/base/net_module.h"29#include "net/base/net_module.h"
29#include "third_party/WebKit/public/platform/WebScreenInfo.h"30#include "third_party/WebKit/public/platform/WebScreenInfo.h"
30#include "ui/gfx/display.h"31#include "ui/gfx/display.h"
@@ -259,6 +260,9 @@
259}260}
260261
261void BrowserMainParts::PreMainMessageLoopRun() {262void BrowserMainParts::PreMainMessageLoopRun() {
263 media::AudioManager::SetGlobalAppName(
264 BrowserPlatformIntegration::GetInstance()->GetApplicationName());
265
262 // With in-process GPU, nothing calls CollectContextGraphicsInfo, so we do266 // With in-process GPU, nothing calls CollectContextGraphicsInfo, so we do
263 // this now. Note that this will have no effect on driver bug workarounds267 // this now. Note that this will have no effect on driver bug workarounds
264 // (those are added to the command line from the basic info found in268 // (those are added to the command line from the basic info found in

Subscribers

People subscribed via source and target branches