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

Issue 158143002: Fine tuned availability of hotword plugin. (Closed)

Created:
6 years, 10 months ago by Jun Mukai
Modified:
6 years, 10 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, chrome-apps-syd-reviews_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, arv+watch_chromium.org, samarth+watch_chromium.org, tfarina, kmadhusu+watch_chromium.org, Jered
Visibility:
Public.

Description

Fine tuned availability of hotword plugin. This CL adds several changes: - enables the JS handler to turn on and off the hotword recognizer - adds a pref 'hotword.app_list_enabled' to customize the plugin usage - synchronization logic, so if the user explicitly turns off hotword.search_enabled, hotword.app_list_enabled goes off too - extract the language check of HotwordService as a static method and let StartPageHandler check it, because our hotword "Ok, Google" is US-English only BUG=341710, 341779 R=xiyuan@chromium.org, rlp@chromium.org, estade@chromium.org TBR=samarth@chromium.org TEST=manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251142

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 6

Patch Set 3 : fix #

Total comments: 6

Patch Set 4 : fix #

Total comments: 2

Patch Set 5 : fix #

Patch Set 6 : re-upload #

Patch Set 7 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -98 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/app_list/speech_manager.js View 2 chunks +25 lines, -14 lines 0 comments Download
M chrome/browser/resources/app_list/start_page.js View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/resources/options/browser_options.html View 1 2 3 4 5 6 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/search/hotword_service.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/search/hotword_service.cc View 1 2 2 chunks +18 lines, -15 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 3 chunks +3 lines, -11 lines 0 comments Download
M chrome/browser/ui/app_list/start_page_service.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/start_page_service.cc View 4 chunks +13 lines, -46 lines 0 comments Download
A chrome/browser/ui/app_list/start_page_service_factory.h View 1 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/start_page_service_factory.cc View 1 1 chunk +63 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/app_list/start_page_handler.h View 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/app_list/start_page_handler.cc View 1 2 4 chunks +45 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Jun Mukai
6 years, 10 months ago (2014-02-08 02:19:28 UTC) #1
xiyuan
LGTM
6 years, 10 months ago (2014-02-08 04:21:27 UTC) #2
rpetterson
https://codereview.chromium.org/158143002/diff/30001/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc File chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc (right): https://codereview.chromium.org/158143002/diff/30001/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc#newcode339 chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc:339: #if defined(ENABLE_APP_LIST) Services should be listed here alphabetically so ...
6 years, 10 months ago (2014-02-09 18:27:18 UTC) #3
Jun Mukai
https://codereview.chromium.org/158143002/diff/30001/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc File chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc (right): https://codereview.chromium.org/158143002/diff/30001/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc#newcode339 chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc:339: #if defined(ENABLE_APP_LIST) On 2014/02/09 18:27:19, rpetterson wrote: > Services ...
6 years, 10 months ago (2014-02-10 20:50:37 UTC) #4
rpetterson
lgtm
6 years, 10 months ago (2014-02-10 21:03:45 UTC) #5
Jun Mukai
estade, could you review changes on c/b/resources/options and c/b/ui/webui/options?
6 years, 10 months ago (2014-02-10 21:12:26 UTC) #6
Jun Mukai
On 2014/02/10 21:12:26, Jun Mukai wrote: > estade, could you review changes on c/b/resources/options and ...
6 years, 10 months ago (2014-02-11 18:26:44 UTC) #7
Evan Stade
https://codereview.chromium.org/158143002/diff/120001/chrome/browser/resources/options/browser_options.html File chrome/browser/resources/options/browser_options.html (right): https://codereview.chromium.org/158143002/diff/120001/chrome/browser/resources/options/browser_options.html#newcode361 chrome/browser/resources/options/browser_options.html:361: <label for="hotword-app-list-enable" even though there are lots of crappy ...
6 years, 10 months ago (2014-02-11 18:54:11 UTC) #8
Jun Mukai
https://codereview.chromium.org/158143002/diff/120001/chrome/browser/resources/options/browser_options.html File chrome/browser/resources/options/browser_options.html (right): https://codereview.chromium.org/158143002/diff/120001/chrome/browser/resources/options/browser_options.html#newcode361 chrome/browser/resources/options/browser_options.html:361: <label for="hotword-app-list-enable" On 2014/02/11 18:54:12, Evan Stade wrote: > ...
6 years, 10 months ago (2014-02-11 19:27:37 UTC) #9
Jun Mukai
Evan, I think I've fixed the code. Anything else I should fix?
6 years, 10 months ago (2014-02-12 17:43:07 UTC) #10
Evan Stade
https://codereview.chromium.org/158143002/diff/120001/chrome/browser/resources/options/browser_options.html File chrome/browser/resources/options/browser_options.html (right): https://codereview.chromium.org/158143002/diff/120001/chrome/browser/resources/options/browser_options.html#newcode361 chrome/browser/resources/options/browser_options.html:361: <label for="hotword-app-list-enable" On 2014/02/11 19:27:38, Jun Mukai wrote: > ...
6 years, 10 months ago (2014-02-12 23:01:48 UTC) #11
Jun Mukai
https://codereview.chromium.org/158143002/diff/120001/chrome/browser/resources/options/browser_options.html File chrome/browser/resources/options/browser_options.html (right): https://codereview.chromium.org/158143002/diff/120001/chrome/browser/resources/options/browser_options.html#newcode361 chrome/browser/resources/options/browser_options.html:361: <label for="hotword-app-list-enable" On 2014/02/12 23:01:49, Evan Stade wrote: > ...
6 years, 10 months ago (2014-02-13 00:08:28 UTC) #12
Evan Stade
webui lgtm
6 years, 10 months ago (2014-02-13 00:15:43 UTC) #13
Jun Mukai
TBR=samarth for chrome/browser/search/hotword_service*. Already got lgtm from rlp.
6 years, 10 months ago (2014-02-13 00:35:22 UTC) #14
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 10 months ago (2014-02-13 00:35:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/158143002/650001
6 years, 10 months ago (2014-02-13 00:38:07 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 02:21:50 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, browser_tests, cacheinvalidation_unittests, cc_unittests, ...
6 years, 10 months ago (2014-02-13 02:21:51 UTC) #18
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 10 months ago (2014-02-13 18:34:12 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/158143002/650001
6 years, 10 months ago (2014-02-13 18:35:47 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/158143002/650001
6 years, 10 months ago (2014-02-13 19:58:20 UTC) #21
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 21:58:29 UTC) #22
Message was sent while issue was closed.
Change committed as 251142

Powered by Google App Engine
This is Rietveld 408576698