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

Issue 853073003: Fix assertion starting cast_shell (breaking thread IO restrictions). (Closed)

Created:
5 years, 11 months ago by halliwell
Modified:
5 years, 11 months ago
CC:
byungchul, chromium-reviews, gunsch, jdduke+watch_chromium.org, kalyank, ozone-reviews_chromium.org, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix assertion starting cast_shell (breaking thread IO restrictions). cast_shell creates aura::WindowTreeHost during main loop, and when running with ozone-platform=egltest this causes a thread_restriction I/O FATAL. BUG=448802 Committed: https://crrev.com/a9d2cb99125b7598354b7acfa074a1893144221d Cr-Commit-Position: refs/heads/master@{#312869}

Patch Set 1 #

Patch Set 2 : Adding exception to PRESUBMIT.py #

Patch Set 3 : Mistake in presubmit regex #

Total comments: 1

Patch Set 4 : Now doing I/O earlier, no need to add PRESUBMIT exception. #

Patch Set 5 : Posting IO work to base::WorkerPool instead #

Total comments: 4

Patch Set 6 : Whitespace fixes plus task is not slow #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -11 lines) Patch
M chromecast/browser/service/cast_service_simple.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chromecast/browser/service/cast_service_simple.cc View 1 2 3 4 5 3 chunks +2 lines, -3 lines 0 comments Download
M ui/events/ozone/device/device_manager_manual.h View 1 2 3 4 2 chunks +15 lines, -0 lines 0 comments Download
M ui/events/ozone/device/device_manager_manual.cc View 1 2 3 4 5 1 chunk +49 lines, -8 lines 3 comments Download

Messages

Total messages: 26 (4 generated)
halliwell
5 years, 11 months ago (2015-01-15 22:50:51 UTC) #2
spang
https://codereview.chromium.org/853073003/diff/40001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/853073003/diff/40001/PRESUBMIT.py#newcode177 PRESUBMIT.py:177: r"^ui[\\\/]events[\\\/]ozone[\\\/]device[\\\/]device_manager_manual\.cc$", Doh! Didn't realize this presubmit exited. We probably ...
5 years, 11 months ago (2015-01-16 01:20:29 UTC) #4
jochen (gone - plz use gerrit)
not lgtm please fix the code to not do IO on a restricted thread
5 years, 11 months ago (2015-01-16 10:50:02 UTC) #5
spang
lgtm
5 years, 11 months ago (2015-01-16 18:19:15 UTC) #6
halliwell
On 2015/01/16 18:19:15, spang wrote: > lgtm @gunsch please check chromecast/ changes
5 years, 11 months ago (2015-01-16 18:21:53 UTC) #8
spang
On 2015/01/16 18:21:53, halliwell wrote: > On 2015/01/16 18:19:15, spang wrote: > > lgtm > ...
5 years, 11 months ago (2015-01-16 18:29:28 UTC) #9
halliwell
On 2015/01/16 18:29:28, spang wrote: > On 2015/01/16 18:21:53, halliwell wrote: > > On 2015/01/16 ...
5 years, 11 months ago (2015-01-16 18:32:21 UTC) #10
gunsch
Hmm, I'm unclear on why getting the startup URL needs to happen before the IO ...
5 years, 11 months ago (2015-01-16 19:06:52 UTC) #11
halliwell
On 2015/01/16 19:06:52, gunsch wrote: > Hmm, I'm unclear on why getting the startup URL ...
5 years, 11 months ago (2015-01-16 19:23:53 UTC) #12
gunsch
chromecast/ lgtm
5 years, 11 months ago (2015-01-16 19:24:14 UTC) #13
jochen (gone - plz use gerrit)
why not just post a task to a thread that can do IO?
5 years, 11 months ago (2015-01-19 12:49:42 UTC) #14
halliwell
On 2015/01/19 12:49:42, jochen (slow) wrote: > why not just post a task to a ...
5 years, 11 months ago (2015-01-22 15:39:40 UTC) #15
jochen (gone - plz use gerrit)
https://codereview.chromium.org/853073003/diff/80001/ui/events/ozone/device/device_manager_manual.cc File ui/events/ozone/device/device_manager_manual.cc (right): https://codereview.chromium.org/853073003/diff/80001/ui/events/ozone/device/device_manager_manual.cc#newcode54 ui/events/ozone/device/device_manager_manual.cc:54: true /* task_is_slow */); not sure this is a ...
5 years, 11 months ago (2015-01-22 16:28:15 UTC) #16
spang
lgtm https://codereview.chromium.org/853073003/diff/80001/ui/events/ozone/device/device_manager_manual.cc File ui/events/ozone/device/device_manager_manual.cc (right): https://codereview.chromium.org/853073003/diff/80001/ui/events/ozone/device/device_manager_manual.cc#newcode34 ui/events/ozone/device/device_manager_manual.cc:34: , weak_ptr_factory_(this) { whitespace issue, please git cl ...
5 years, 11 months ago (2015-01-22 20:45:57 UTC) #17
halliwell
https://codereview.chromium.org/853073003/diff/80001/ui/events/ozone/device/device_manager_manual.cc File ui/events/ozone/device/device_manager_manual.cc (right): https://codereview.chromium.org/853073003/diff/80001/ui/events/ozone/device/device_manager_manual.cc#newcode34 ui/events/ozone/device/device_manager_manual.cc:34: , weak_ptr_factory_(this) { On 2015/01/22 20:45:57, spang wrote: > ...
5 years, 11 months ago (2015-01-22 21:56:52 UTC) #18
dnicoara
https://codereview.chromium.org/853073003/diff/100001/ui/events/ozone/device/device_manager_manual.cc File ui/events/ozone/device/device_manager_manual.cc (right): https://codereview.chromium.org/853073003/diff/100001/ui/events/ozone/device/device_manager_manual.cc#newcode39 ui/events/ozone/device/device_manager_manual.cc:39: if (have_scanned_devices_) { Drive-by comment: If multiple callers end ...
5 years, 11 months ago (2015-01-22 22:38:57 UTC) #19
spang
https://codereview.chromium.org/853073003/diff/100001/ui/events/ozone/device/device_manager_manual.cc File ui/events/ozone/device/device_manager_manual.cc (right): https://codereview.chromium.org/853073003/diff/100001/ui/events/ozone/device/device_manager_manual.cc#newcode39 ui/events/ozone/device/device_manager_manual.cc:39: if (have_scanned_devices_) { On 2015/01/22 22:38:57, dnicoara wrote: > ...
5 years, 11 months ago (2015-01-22 22:42:03 UTC) #20
dnicoara
https://codereview.chromium.org/853073003/diff/100001/ui/events/ozone/device/device_manager_manual.cc File ui/events/ozone/device/device_manager_manual.cc (right): https://codereview.chromium.org/853073003/diff/100001/ui/events/ozone/device/device_manager_manual.cc#newcode39 ui/events/ozone/device/device_manager_manual.cc:39: if (have_scanned_devices_) { On 2015/01/22 22:42:02, spang wrote: > ...
5 years, 11 months ago (2015-01-22 22:43:13 UTC) #21
jochen (gone - plz use gerrit)
lgtm
5 years, 11 months ago (2015-01-23 14:18:35 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/853073003/100001
5 years, 11 months ago (2015-01-23 16:55:05 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 11 months ago (2015-01-23 17:44:30 UTC) #25
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 17:45:19 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a9d2cb99125b7598354b7acfa074a1893144221d
Cr-Commit-Position: refs/heads/master@{#312869}

Powered by Google App Engine
This is Rietveld 408576698