commit | 60ca1a7bca7cc804ec80b510483081ef894de4cd | [log] [tgz] |
---|---|---|
author | Alex Deymo <[email protected]> | Thu Jun 18 18:19:15 2015 -0700 |
committer | ChromeOS Commit Bot <[email protected]> | Fri Jun 26 01:47:39 2015 +0000 |
tree | cc171d9ad62e77b76106ab1863d880f52b431e65 | |
parent | 72aa0029bcdaf0169ea5c0ace5d224bdc28fcad8 [diff] |
update_engine: Migrate time-based glib main loop calls to MessageLoop. This patch replaces most calls to g_idle_add* and g_timeout_add* with the equivalent MessageLoop::Post*Task(). To maintain compatibility with unittests running the main loop and doing I/O we instantiate a GlibMessageLoop for those tests. BUG=chromium:499886 TEST=unittests still pass. Change-Id: Ic87ba69bc47391ac3c36d1bfc3ca28d069666af1 Reviewed-on: https://chromium-review.googlesource.com/281197 Reviewed-by: Alex Vakulenko <[email protected]> Tested-by: Alex Deymo <[email protected]> Commit-Queue: Alex Deymo <[email protected]> Trybot-Ready: Alex Deymo <[email protected]>