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

Issue 795393002: [Hotword] Implement IsHotwordHardwareAvailable() using device types. (Closed)

Created:
6 years ago by rpetterson
Modified:
6 years ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, oshima+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, rlp+watch_chromium.org, stevenjb+watch_chromium.org, Jered
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Hotword] Implement IsHotwordHardwareAvailable() using device types. Adds an additional device type to the chromeos::AudioDevice enum. BUG=403138 Committed: https://crrev.com/fca3b1544dd63d8ae46300ee07ac91feb4bdd89e Cr-Commit-Position: refs/heads/master@{#308533}

Patch Set 1 #

Total comments: 5

Patch Set 2 : don't display aokr type #

Patch Set 3 : fix spacing #

Total comments: 2

Patch Set 4 : move dcheck #

Patch Set 5 : fix test with initialize #

Patch Set 6 : another test fix #

Patch Set 7 : add testing code hotword_service so it's not needed for every test #

Patch Set 8 : move cras init to start of ctor so it's initialized before it's used #

Patch Set 9 : fix component loader unittest #

Patch Set 10 : fix failures due to double init of cras audio handler #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -6 lines) Patch
M ash/system/chromeos/audio/audio_detailed_view.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/component_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/search/hotword_service.cc View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/search/hotword_service_factory.cc View 1 2 3 2 chunks +14 lines, -4 lines 0 comments Download
M chromeos/audio/audio_device.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/audio/audio_device.cc View 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (3 generated)
rpetterson
dgreid: overall and using the correct device type jennyz: audio_device.{cc,h} -- Is that the correct ...
6 years ago (2014-12-12 00:41:27 UTC) #2
dgreid
This looks like it should work, One possible issue: Jenny, how can we filter this ...
6 years ago (2014-12-12 00:59:44 UTC) #3
jennyz
On 2014/12/12 00:59:44, dgreid wrote: > This looks like it should work, One possible issue: ...
6 years ago (2014-12-12 23:22:53 UTC) #4
dgreid
On 2014/12/12 23:22:53, jennyz wrote: > On 2014/12/12 00:59:44, dgreid wrote: > > This looks ...
6 years ago (2014-12-12 23:25:24 UTC) #5
rpetterson
On 2014/12/12 23:25:24, dgreid wrote: > On 2014/12/12 23:22:53, jennyz wrote: > > On 2014/12/12 ...
6 years ago (2014-12-12 23:30:46 UTC) #6
jennyz
On 2014/12/12 23:30:46, rpetterson wrote: > On 2014/12/12 23:25:24, dgreid wrote: > > On 2014/12/12 ...
6 years ago (2014-12-13 00:04:50 UTC) #7
jennyz
https://codereview.chromium.org/795393002/diff/1/chrome/browser/search/hotword_service_factory.cc File chrome/browser/search/hotword_service_factory.cc (right): https://codereview.chromium.org/795393002/diff/1/chrome/browser/search/hotword_service_factory.cc#newcode54 chrome/browser/search/hotword_service_factory.cc:54: if (devices[i].type == chromeos::AUDIO_TYPE_AOKR) By the way, do you ...
6 years ago (2014-12-13 00:05:01 UTC) #8
dgreid
https://codereview.chromium.org/795393002/diff/1/chrome/browser/search/hotword_service_factory.cc File chrome/browser/search/hotword_service_factory.cc (right): https://codereview.chromium.org/795393002/diff/1/chrome/browser/search/hotword_service_factory.cc#newcode54 chrome/browser/search/hotword_service_factory.cc:54: if (devices[i].type == chromeos::AUDIO_TYPE_AOKR) On 2014/12/13 00:05:01, jennyz wrote: ...
6 years ago (2014-12-13 00:06:11 UTC) #9
jennyz
https://codereview.chromium.org/795393002/diff/1/chrome/browser/search/hotword_service_factory.cc File chrome/browser/search/hotword_service_factory.cc (right): https://codereview.chromium.org/795393002/diff/1/chrome/browser/search/hotword_service_factory.cc#newcode54 chrome/browser/search/hotword_service_factory.cc:54: if (devices[i].type == chromeos::AUDIO_TYPE_AOKR) On 2014/12/13 00:06:11, dgreid wrote: ...
6 years ago (2014-12-13 00:08:14 UTC) #10
rpetterson
On 2014/12/13 00:08:14, jennyz wrote: > https://codereview.chromium.org/795393002/diff/1/chrome/browser/search/hotword_service_factory.cc > File chrome/browser/search/hotword_service_factory.cc (right): > > https://codereview.chromium.org/795393002/diff/1/chrome/browser/search/hotword_service_factory.cc#newcode54 > ...
6 years ago (2014-12-13 00:13:32 UTC) #11
jennyz
https://codereview.chromium.org/795393002/diff/1/chrome/browser/search/hotword_service_factory.cc File chrome/browser/search/hotword_service_factory.cc (right): https://codereview.chromium.org/795393002/diff/1/chrome/browser/search/hotword_service_factory.cc#newcode54 chrome/browser/search/hotword_service_factory.cc:54: if (devices[i].type == chromeos::AUDIO_TYPE_AOKR) On 2014/12/13 00:08:14, jennyz wrote: ...
6 years ago (2014-12-13 00:17:36 UTC) #12
Anand Mistry (off Chromium)
LGTM for hotword_service_factory
6 years ago (2014-12-13 00:33:39 UTC) #13
rpetterson
https://codereview.chromium.org/795393002/diff/1/chrome/browser/search/hotword_service_factory.cc File chrome/browser/search/hotword_service_factory.cc (right): https://codereview.chromium.org/795393002/diff/1/chrome/browser/search/hotword_service_factory.cc#newcode54 chrome/browser/search/hotword_service_factory.cc:54: if (devices[i].type == chromeos::AUDIO_TYPE_AOKR) On 2014/12/13 00:17:36, jennyz wrote: ...
6 years ago (2014-12-13 00:56:27 UTC) #14
jennyz
lgtm
6 years ago (2014-12-15 18:01:33 UTC) #15
rpetterson
benwells@chromium.org: Please review changes in component_loader_unittest
6 years ago (2014-12-16 00:05:48 UTC) #17
benwells
lgtm
6 years ago (2014-12-16 01:24:24 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795393002/180001
6 years ago (2014-12-16 04:48:01 UTC) #20
commit-bot: I haz the power
Committed patchset #10 (id:180001)
6 years ago (2014-12-16 05:36:52 UTC) #21
commit-bot: I haz the power
6 years ago (2014-12-16 05:37:33 UTC) #22
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/fca3b1544dd63d8ae46300ee07ac91feb4bdd89e
Cr-Commit-Position: refs/heads/master@{#308533}

Powered by Google App Engine
This is Rietveld 408576698