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

Issue 2455833002: Pass task_runner_ to server and send 404 when incorrect url (Closed)

Created:
4 years, 1 month ago by Sarmad Hashmi
Modified:
4 years, 1 month ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, kalyank, sadrul, pfeldman, devtools-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass task_runner_ to server and send 404 when incorrect url A few small changes for the ui_devtools server: - Don't create a new thread and just pass a task_runner_. - Send 404 when invalid url is requested from the server. - Fix for weird error where HttpServer calls OnClose with a connection id that never even connected in the first place. Just do nothing if the connection id doesn't exist in our list of connections connected to a UI client. BUG=648701 Committed: https://crrev.com/6011c1bd16ebebe75c97cdfed9849b8d14197a6e Cr-Commit-Position: refs/heads/master@{#428713}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Make a default create method (without task_runner) #

Total comments: 2

Patch Set 3 : sadruls comments #

Total comments: 4

Patch Set 4 : sadruls comments #

Total comments: 2

Patch Set 5 : sadruls comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -27 lines) Patch
M ash/common/wm_shell.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/ui_devtools/devtools_server.h View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M components/ui_devtools/devtools_server.cc View 1 2 3 6 chunks +30 lines, -22 lines 0 comments Download

Messages

Total messages: 30 (17 generated)
Sarmad Hashmi
Just some minor changes to the ui devtools server.
4 years, 1 month ago (2016-10-27 01:19:28 UTC) #2
sadrul
The ui_devtools changes look reasonable. But are you sure the ash change is OK? Because ...
4 years, 1 month ago (2016-10-28 02:32:27 UTC) #3
Sarmad Hashmi
https://codereview.chromium.org/2455833002/diff/1/ash/common/wm_shell.cc File ash/common/wm_shell.cc (right): https://codereview.chromium.org/2455833002/diff/1/ash/common/wm_shell.cc#newcode94 ash/common/wm_shell.cc:94: base::ThreadTaskRunnerHandle::Get()); On 2016/10/28 02:32:27, sadrul wrote: > Are sure ...
4 years, 1 month ago (2016-10-28 17:02:46 UTC) #4
sadrul
https://codereview.chromium.org/2455833002/diff/20001/components/ui_devtools/devtools_server.h File components/ui_devtools/devtools_server.h (right): https://codereview.chromium.org/2455833002/diff/20001/components/ui_devtools/devtools_server.h#newcode28 components/ui_devtools/devtools_server.h:28: scoped_refptr<base::SingleThreadTaskRunner> task_runner); I would remove the default version (i.e. ...
4 years, 1 month ago (2016-10-29 05:39:51 UTC) #5
Sarmad Hashmi
https://codereview.chromium.org/2455833002/diff/20001/components/ui_devtools/devtools_server.h File components/ui_devtools/devtools_server.h (right): https://codereview.chromium.org/2455833002/diff/20001/components/ui_devtools/devtools_server.h#newcode28 components/ui_devtools/devtools_server.h:28: scoped_refptr<base::SingleThreadTaskRunner> task_runner); On 2016/10/29 05:39:51, sadrul wrote: > I ...
4 years, 1 month ago (2016-10-29 16:26:20 UTC) #7
sadrul
https://codereview.chromium.org/2455833002/diff/40001/components/ui_devtools/devtools_server.cc File components/ui_devtools/devtools_server.cc (right): https://codereview.chromium.org/2455833002/diff/40001/components/ui_devtools/devtools_server.cc#newcode41 components/ui_devtools/devtools_server.cc:41: DCHECK(task_runner_); You can remove the default ctor, and optionally ...
4 years, 1 month ago (2016-10-29 17:14:59 UTC) #11
Sarmad Hashmi
https://codereview.chromium.org/2455833002/diff/40001/components/ui_devtools/devtools_server.cc File components/ui_devtools/devtools_server.cc (right): https://codereview.chromium.org/2455833002/diff/40001/components/ui_devtools/devtools_server.cc#newcode41 components/ui_devtools/devtools_server.cc:41: DCHECK(task_runner_); On 2016/10/29 17:14:59, sadrul wrote: > You can ...
4 years, 1 month ago (2016-10-29 17:27:26 UTC) #14
sadrul
lgtm https://codereview.chromium.org/2455833002/diff/60001/components/ui_devtools/devtools_server.h File components/ui_devtools/devtools_server.h (right): https://codereview.chromium.org/2455833002/diff/60001/components/ui_devtools/devtools_server.h#newcode33 components/ui_devtools/devtools_server.h:33: UiDevToolsServer(); Remove this?
4 years, 1 month ago (2016-10-30 18:03:35 UTC) #17
Sarmad Hashmi
+sky@ for owners review https://codereview.chromium.org/2455833002/diff/60001/components/ui_devtools/devtools_server.h File components/ui_devtools/devtools_server.h (right): https://codereview.chromium.org/2455833002/diff/60001/components/ui_devtools/devtools_server.h#newcode33 components/ui_devtools/devtools_server.h:33: UiDevToolsServer(); On 2016/10/30 18:03:35, sadrul ...
4 years, 1 month ago (2016-10-30 21:51:38 UTC) #23
sky
ash LGTM
4 years, 1 month ago (2016-10-31 15:19:20 UTC) #24
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/2455833002/80001
4 years, 1 month ago (2016-10-31 15:20:05 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-10-31 15:24:51 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 15:44:43 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6011c1bd16ebebe75c97cdfed9849b8d14197a6e
Cr-Commit-Position: refs/heads/master@{#428713}

Powered by Google App Engine
This is Rietveld 408576698