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

Issue 587153002: Suppress the exception thrown when responding to message with no response callback. (Closed)

Created:
6 years, 3 months ago by Anand Mistry (off Chromium)
Modified:
6 years, 2 months ago
CC:
chromium-reviews, rlp+watch_chromium.org, arv+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Suppress the exception thrown when responding to message with no response callback. BUG=414483 Committed: https://crrev.com/bd3ad7a6a3a94a532a3ee3e73f3c92c2f1b746e5 Cr-Commit-Position: refs/heads/master@{#297111}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Document string definition. #

Total comments: 4

Patch Set 3 : Clarify comment. #

Total comments: 6

Patch Set 4 : Add test. #

Total comments: 8

Patch Set 5 : Address comments. #

Total comments: 4

Patch Set 6 : More review comments. #

Patch Set 7 : Rebase #

Patch Set 8 : Use the component loader instead of loading the unpacked extension. #

Total comments: 6

Patch Set 9 : Address comments. #

Patch Set 10 : Fix typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -17 lines) Patch
A chrome/browser/extensions/hotword_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +87 lines, -0 lines 0 comments Download
M chrome/browser/resources/hotword_helper/manager.js View 1 2 3 4 5 3 chunks +32 lines, -13 lines 0 comments Download
M chrome/browser/resources/hotword_helper/manifest.json View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/test/data/extensions/hotword/manifest.json View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
A chrome/test/data/extensions/hotword/test.js View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (6 generated)
Anand Mistry (off Chromium)
6 years, 3 months ago (2014-09-22 05:40:38 UTC) #2
rpetterson
https://codereview.chromium.org/587153002/diff/1/chrome/browser/resources/hotword_helper/manager.js File chrome/browser/resources/hotword_helper/manager.js (right): https://codereview.chromium.org/587153002/diff/1/chrome/browser/resources/hotword_helper/manager.js#newcode79 chrome/browser/resources/hotword_helper/manager.js:79: if (err.message == 'Attempting to use a disconnected port ...
6 years, 3 months ago (2014-09-22 23:04:41 UTC) #3
Anand Mistry (off Chromium)
https://codereview.chromium.org/587153002/diff/1/chrome/browser/resources/hotword_helper/manager.js File chrome/browser/resources/hotword_helper/manager.js (right): https://codereview.chromium.org/587153002/diff/1/chrome/browser/resources/hotword_helper/manager.js#newcode79 chrome/browser/resources/hotword_helper/manager.js:79: if (err.message == 'Attempting to use a disconnected port ...
6 years, 3 months ago (2014-09-22 23:50:43 UTC) #5
rpetterson
lgtm https://codereview.chromium.org/587153002/diff/1/chrome/browser/resources/hotword_helper/manager.js File chrome/browser/resources/hotword_helper/manager.js (right): https://codereview.chromium.org/587153002/diff/1/chrome/browser/resources/hotword_helper/manager.js#newcode79 chrome/browser/resources/hotword_helper/manager.js:79: if (err.message == 'Attempting to use a disconnected ...
6 years, 3 months ago (2014-09-22 23:53:03 UTC) #6
Anand Mistry (off Chromium)
https://codereview.chromium.org/587153002/diff/1/chrome/browser/resources/hotword_helper/manager.js File chrome/browser/resources/hotword_helper/manager.js (right): https://codereview.chromium.org/587153002/diff/1/chrome/browser/resources/hotword_helper/manager.js#newcode79 chrome/browser/resources/hotword_helper/manager.js:79: if (err.message == 'Attempting to use a disconnected port ...
6 years, 3 months ago (2014-09-23 00:31:30 UTC) #7
Dan Beam
https://codereview.chromium.org/587153002/diff/20001/chrome/browser/resources/hotword_helper/manager.js File chrome/browser/resources/hotword_helper/manager.js (right): https://codereview.chromium.org/587153002/diff/20001/chrome/browser/resources/hotword_helper/manager.js#newcode74 chrome/browser/resources/hotword_helper/manager.js:74: sendResponse({'doNotShowOptinMessage': true}); ^ which of these lines actually throw? ...
6 years, 3 months ago (2014-09-23 03:35:38 UTC) #8
Anand Mistry (off Chromium)
https://codereview.chromium.org/587153002/diff/20001/chrome/browser/resources/hotword_helper/manager.js File chrome/browser/resources/hotword_helper/manager.js (right): https://codereview.chromium.org/587153002/diff/20001/chrome/browser/resources/hotword_helper/manager.js#newcode74 chrome/browser/resources/hotword_helper/manager.js:74: sendResponse({'doNotShowOptinMessage': true}); On 2014/09/23 03:35:38, Dan Beam wrote: > ...
6 years, 3 months ago (2014-09-23 03:55:07 UTC) #9
Dan Beam
https://codereview.chromium.org/587153002/diff/40001/chrome/browser/resources/hotword_helper/manager.js File chrome/browser/resources/hotword_helper/manager.js (right): https://codereview.chromium.org/587153002/diff/40001/chrome/browser/resources/hotword_helper/manager.js#newcode61 chrome/browser/resources/hotword_helper/manager.js:61: try { nit: if sendReponse() is what throws, i'd ...
6 years, 3 months ago (2014-09-23 04:14:01 UTC) #10
Anand Mistry (off Chromium)
asargent@chromium.org: Please review changes in hotword_browsertest.cc https://codereview.chromium.org/587153002/diff/40001/chrome/browser/resources/hotword_helper/manager.js File chrome/browser/resources/hotword_helper/manager.js (right): https://codereview.chromium.org/587153002/diff/40001/chrome/browser/resources/hotword_helper/manager.js#newcode61 chrome/browser/resources/hotword_helper/manager.js:61: try { On ...
6 years, 3 months ago (2014-09-24 01:11:41 UTC) #12
Dan Beam
https://codereview.chromium.org/587153002/diff/60001/chrome/browser/extensions/hotword_browsertest.cc File chrome/browser/extensions/hotword_browsertest.cc (right): https://codereview.chromium.org/587153002/diff/60001/chrome/browser/extensions/hotword_browsertest.cc#newcode26 chrome/browser/extensions/hotword_browsertest.cc:26: base::FilePath component_extension_dir_; nit: make this member private and expose ...
6 years, 3 months ago (2014-09-24 01:37:35 UTC) #13
Anand Mistry (off Chromium)
https://codereview.chromium.org/587153002/diff/60001/chrome/browser/extensions/hotword_browsertest.cc File chrome/browser/extensions/hotword_browsertest.cc (right): https://codereview.chromium.org/587153002/diff/60001/chrome/browser/extensions/hotword_browsertest.cc#newcode26 chrome/browser/extensions/hotword_browsertest.cc:26: base::FilePath component_extension_dir_; On 2014/09/24 01:37:35, Dan Beam wrote: > ...
6 years, 3 months ago (2014-09-24 03:44:12 UTC) #14
Dan Beam
lgtm https://codereview.chromium.org/587153002/diff/80001/chrome/browser/extensions/hotword_browsertest.cc File chrome/browser/extensions/hotword_browsertest.cc (right): https://codereview.chromium.org/587153002/diff/80001/chrome/browser/extensions/hotword_browsertest.cc#newcode70 chrome/browser/extensions/hotword_browsertest.cc:70: base::FilePath component_extension_dir_; nit: DISALLOW_COPY_AND_ASSIGN() https://codereview.chromium.org/587153002/diff/80001/chrome/browser/resources/hotword_helper/manager.js File chrome/browser/resources/hotword_helper/manager.js (right): ...
6 years, 3 months ago (2014-09-24 04:58:27 UTC) #15
Anand Mistry (off Chromium)
https://codereview.chromium.org/587153002/diff/80001/chrome/browser/extensions/hotword_browsertest.cc File chrome/browser/extensions/hotword_browsertest.cc (right): https://codereview.chromium.org/587153002/diff/80001/chrome/browser/extensions/hotword_browsertest.cc#newcode70 chrome/browser/extensions/hotword_browsertest.cc:70: base::FilePath component_extension_dir_; On 2014/09/24 04:58:27, Dan Beam wrote: > ...
6 years, 3 months ago (2014-09-24 06:32:40 UTC) #16
asargent_no_longer_on_chrome
https://codereview.chromium.org/587153002/diff/140001/chrome/browser/extensions/hotword_browsertest.cc File chrome/browser/extensions/hotword_browsertest.cc (right): https://codereview.chromium.org/587153002/diff/140001/chrome/browser/extensions/hotword_browsertest.cc#newcode32 chrome/browser/extensions/hotword_browsertest.cc:32: "force-fieldtrials", "VoiceTrigger/Install/"); nit: Are there constants either of these ...
6 years, 3 months ago (2014-09-24 19:20:00 UTC) #17
Anand Mistry (off Chromium)
https://codereview.chromium.org/587153002/diff/140001/chrome/browser/extensions/hotword_browsertest.cc File chrome/browser/extensions/hotword_browsertest.cc (right): https://codereview.chromium.org/587153002/diff/140001/chrome/browser/extensions/hotword_browsertest.cc#newcode32 chrome/browser/extensions/hotword_browsertest.cc:32: "force-fieldtrials", "VoiceTrigger/Install/"); On 2014/09/24 19:19:59, asargent wrote: > nit: ...
6 years, 2 months ago (2014-09-25 00:53:23 UTC) #18
asargent_no_longer_on_chrome
lgtm, sorry for delay
6 years, 2 months ago (2014-09-26 20:17:32 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/587153002/180001
6 years, 2 months ago (2014-09-27 00:16:54 UTC) #21
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 2 months ago (2014-09-27 06:17:35 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/587153002/180001
6 years, 2 months ago (2014-09-27 08:14:19 UTC) #25
commit-bot: I haz the power
Committed patchset #10 (id:180001) as 240370d5b7b6f59bd14eec62a4c9a24a5ca22068
6 years, 2 months ago (2014-09-27 09:12:48 UTC) #26
commit-bot: I haz the power
6 years, 2 months ago (2014-09-27 09:13:29 UTC) #27
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/bd3ad7a6a3a94a532a3ee3e73f3c92c2f1b746e5
Cr-Commit-Position: refs/heads/master@{#297111}

Powered by Google App Engine
This is Rietveld 408576698