Fix bug with pre-setting discovery filter
commit3ec30ebe66e1c8e1dee86b1df7973b1e1a3eb02a
authorjpawlowski <jpawlowski@chromium.org>
Thu, 23 Apr 2015 21:52:09 +0000 (23 14:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Apr 2015 21:52:31 +0000 (23 21:52 +0000)
treed0bb09066fdc344dbeb0ee54d5943ffaae1a660f
parentcfcf2420261ed23d6316d57221bcae99c5e2ad1f
Fix bug with pre-setting discovery filter

When calling AddDiscoverySession, discovery_filter argument was used twice in two arguments.
Argument evaluation order is not guaranteed. I.e. it's different between tests and running on link or samus platform.
This caused error that was not detected by tests, when pre setting filter.
This patch fixes that, by moving evaluation of one of arguments before actual call.

BUG=407773
R=armansito@chromium.org

Review URL: https://codereview.chromium.org/1102813002

Cr-Commit-Position: refs/heads/master@{#326659}
device/bluetooth/bluetooth_adapter.cc