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

Issue 2898173006: restricts when context could be retrieved. (Closed)

Created:
3 years, 7 months ago by Muyuan
Modified:
3 years, 7 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, oshima+watch_chromium.org, yusukes+watch_chromium.org, tfarina, hidehiko+watch_chromium.org, sadrul, asvitkine+watch_chromium.org, lhchavez+watch_chromium.org, victorhsieh+watch_chromium.org, kalyank, davemoore+watch_chromium.org, Matt Giuca
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

restricts when context could be retrieved. Add a timeout after user initiating voice interaction session. All context requests can only be done with pre-defined number of times during this time frame. BUG=b/62065175 Review-Url: https://codereview.chromium.org/2898173006 Cr-Commit-Position: refs/heads/master@{#474917} Committed: https://chromium.googlesource.com/chromium/src/+/e38092a8f069577f01e4d64caad1e79012cca9b6

Patch Set 1 #

Patch Set 2 : restricts when context could be retrieved. #

Total comments: 16

Patch Set 3 : address review comments #

Total comments: 19

Patch Set 4 : address comments to metrics #

Patch Set 5 : address review comments #

Patch Set 6 : rebase #

Patch Set 7 : prioritize container when user pressed shortcut #

Patch Set 8 : fix shortcut key for meta + shift + a #

Patch Set 9 : fix build #

Patch Set 10 : fix meta layer shortcut key #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -35 lines) Patch
M chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc View 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h View 1 2 3 4 5 3 chunks +30 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc View 1 2 3 4 5 6 7 8 9 9 chunks +113 lines, -21 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_presenter_service.cc View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/palette_delegate_chromeos.cc View 2 chunks +4 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (14 generated)
Muyuan
lhchavez@chromium.org: Please review changes in chrome/browser/chromeos/arc/* derat@chromium.org: Please review changes in chrome/browser/ui/* isherman@chromium.org: Please review ...
3 years, 7 months ago (2017-05-25 02:07:38 UTC) #3
Daniel Erat
lgtm https://codereview.chromium.org/2898173006/diff/20001/chrome/browser/ui/ash/app_list/app_list_presenter_service.cc File chrome/browser/ui/ash/app_list/app_list_presenter_service.cc (right): https://codereview.chromium.org/2898173006/diff/20001/chrome/browser/ui/ash/app_list/app_list_presenter_service.cc#newcode10 chrome/browser/ui/ash/app_list/app_list_presenter_service.cc:10: #include "chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h" it precedes this change, but this ...
3 years, 7 months ago (2017-05-25 13:35:25 UTC) #4
Luis Héctor Chávez
https://codereview.chromium.org/2898173006/diff/20001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2898173006/diff/20001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode49 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:49: const int64_t kAllowedTimeMsSinceUserInteraction = 2000; nit: don't use milliseconds. ...
3 years, 7 months ago (2017-05-25 15:55:19 UTC) #5
Muyuan
https://codereview.chromium.org/2898173006/diff/20001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2898173006/diff/20001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode49 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:49: const int64_t kAllowedTimeMsSinceUserInteraction = 2000; On 2017/05/25 15:55:18, Luis ...
3 years, 7 months ago (2017-05-25 20:44:15 UTC) #6
Ilya Sherman
https://codereview.chromium.org/2898173006/diff/40001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2898173006/diff/40001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode49 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:49: // kMaxTimeMsSinceUserInteractionForHistogram. Why is it important for this value ...
3 years, 7 months ago (2017-05-25 22:21:16 UTC) #7
Luis Héctor Chávez
https://codereview.chromium.org/2898173006/diff/40001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2898173006/diff/40001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode50 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:50: constexpr base::TimeDelta kAllowedTimeMsSinceUserInteraction = nit: kAllowedTimeSinceUserInteraction same below, drop ...
3 years, 7 months ago (2017-05-25 22:32:50 UTC) #8
Muyuan
https://codereview.chromium.org/2898173006/diff/40001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2898173006/diff/40001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode49 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:49: // kMaxTimeMsSinceUserInteractionForHistogram. On 2017/05/25 22:21:16, Ilya Sherman wrote: > ...
3 years, 7 months ago (2017-05-25 22:32:58 UTC) #9
Ilya Sherman
Metrics LGTM % a comment. Thanks! https://codereview.chromium.org/2898173006/diff/40001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2898173006/diff/40001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode49 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:49: // kMaxTimeMsSinceUserInteractionForHistogram. On ...
3 years, 7 months ago (2017-05-25 22:37:18 UTC) #10
Muyuan
https://codereview.chromium.org/2898173006/diff/40001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2898173006/diff/40001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode50 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:50: constexpr base::TimeDelta kAllowedTimeMsSinceUserInteraction = On 2017/05/25 22:32:50, Luis Héctor ...
3 years, 7 months ago (2017-05-25 23:01:26 UTC) #11
Luis Héctor Chávez
c/b/arc lgtm
3 years, 7 months ago (2017-05-25 23:15:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2898173006/100001
3 years, 7 months ago (2017-05-25 23:35:12 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/465127)
3 years, 7 months ago (2017-05-26 00:26:17 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2898173006/100001
3 years, 7 months ago (2017-05-26 00:38:21 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2898173006/120001
3 years, 7 months ago (2017-05-26 01:39:32 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2898173006/140001
3 years, 7 months ago (2017-05-26 03:06:42 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2898173006/180001
3 years, 7 months ago (2017-05-26 03:35:48 UTC) #28
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 05:16:50 UTC) #31
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/e38092a8f069577f01e4d64caad1...

Powered by Google App Engine
This is Rietveld 408576698