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

Issue 25348004: Empty startup task queue when tasks run synchronously (Closed)

Created:
7 years, 2 months ago by aberent
Modified:
7 years, 2 months ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Empty startup task queue when tasks run synchronously Also empty it when a task fails, and ensure that callback is only called once. Extend the tests to check all this. TEST=content_unittests --gtest_filter='StartupTaskRunner*' BUG=304108 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228010

Patch Set 1 #

Total comments: 6

Patch Set 2 : Empty startup task queue when tasks run synchronously - fix nits #

Patch Set 3 : Empty startup task queue when tasks run synchronously - fix nits and upload problems #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -12 lines) Patch
M content/browser/startup_task_runner.cc View 1 3 chunks +12 lines, -1 line 0 comments Download
M content/browser/startup_task_runner_unittest.cc View 8 chunks +56 lines, -11 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
aberent
7 years, 2 months ago (2013-10-04 12:01:48 UTC) #1
sky
Sorry, I'm not familiar with this code. Maybe John is? +jam
7 years, 2 months ago (2013-10-04 17:28:53 UTC) #2
jam
lgtm https://codereview.chromium.org/25348004/diff/1/content/browser/startup_task_runner.cc File content/browser/startup_task_runner.cc (right): https://codereview.chromium.org/25348004/diff/1/content/browser/startup_task_runner.cc#newcode31 content/browser/startup_task_runner.cc:31: startup_complete_callback_ = base::Callback<void(int)>(); nit: startup_complete_callback_.Reset(); https://codereview.chromium.org/25348004/diff/1/content/browser/startup_task_runner.cc#newcode52 content/browser/startup_task_runner.cc:52: startup_complete_callback_ ...
7 years, 2 months ago (2013-10-07 16:17:03 UTC) #3
aberent
https://codereview.chromium.org/25348004/diff/1/content/browser/startup_task_runner.cc File content/browser/startup_task_runner.cc (right): https://codereview.chromium.org/25348004/diff/1/content/browser/startup_task_runner.cc#newcode31 content/browser/startup_task_runner.cc:31: startup_complete_callback_ = base::Callback<void(int)>(); On 2013/10/07 16:17:03, jam wrote: > ...
7 years, 2 months ago (2013-10-10 13:56:36 UTC) #4
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 2 months ago (2013-10-10 13:57:02 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 2 months ago (2013-10-10 14:05:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/25348004/11001
7 years, 2 months ago (2013-10-10 18:06:23 UTC) #7
commit-bot: I haz the power
7 years, 2 months ago (2013-10-10 21:39:18 UTC) #8
Message was sent while issue was closed.
Change committed as 228010

Powered by Google App Engine
This is Rietveld 408576698