Closed Bug 793950 Opened 12 years ago Closed 12 years ago

[b2g-bluetooth] Handle volume change in BluetoothHfpManager

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18
blocking-basecamp +

People

(Reporter: gyeh, Assigned: gyeh)

References

Details

(Whiteboard: [LOE:S])

Attachments

(1 file, 1 obsolete file)

      No description provided.
Attached patch v1 patch (obsolete) — Splinter Review
Attachment #664346 - Flags: review?(kyle)
Comment on attachment 664346 [details] [diff] [review]
v1 patch

Review of attachment 664346 [details] [diff] [review]:
-----------------------------------------------------------------

Looks ok outside of comments.

::: dom/bluetooth/BluetoothHfpManager.cpp
@@ +14,5 @@
>  
>  #include "mozilla/Services.h"
> +#include "mozilla/dom/bluetooth/BluetoothTypes.h"
> +#include "nsContentUtils.h"
> +#include "nsIDOMDOMRequest.h"

Don't think this needs to be here?

@@ +41,5 @@
> +
> +  if (NS_FAILED(obs->AddObserver(sInstance, MOZSETTINGS_CHANGED_ID, false))) {
> +    NS_WARNING("Failed to add settings change observer!");
> +    return false;
> +  }

Shouldn't this be part of creation? We don't need to readd the observer every time we fetch, do we?
Attachment #664346 - Flags: review?(kyle) → review+
Attached patch v2 patchSplinter Review
Fixed the following items:

* Add observer in creation
* No include "nsIDOMDOMRequest.h"
Attachment #664346 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/f80cc2f44c27
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: