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

Issue 22691002: Allow overlapping sync and async startup requests (Closed)

Created:
7 years, 4 months ago by aberent
Modified:
7 years, 3 months ago
Reviewers:
nyquist, joth, Yaron, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, android-webview-reviews_chromium.org, jochen+watch_chromium.org, nyquist
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Allow overlapping sync and async startup requests On Android we can get a second request to start the browser while the an asynchronous request is in progress. Since the second request may be synchronous, we may have switch to completing initialization synchronously. This patch handles this by tracking which initialization tasks have been run, and running the remaining initialization tasks. BUG=260574 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219795

Patch Set 1 #

Patch Set 2 : Allow multiple overlapping startup requests - minor editorial improvements #

Total comments: 4

Patch Set 3 : Allow multiple overlapping startup requests - rebase to fix apply problem #

Patch Set 4 : Allow multiple overlapping startup requests - reuse existing StartupTaskRunner, plus handle multipl… #

Patch Set 5 : Allow multiple overlapping startup requests - minor fix to browser_main_loop.cc #

Total comments: 6

Patch Set 6 : Allow multiple overlapping startup requests - update to merge with nyquist@'s patch #

Total comments: 54

Patch Set 7 : Allow overlapping sync and async startup requests - code review fixes #

Patch Set 8 : Allow overlapping sync and async startup requests - code review fixe #

Total comments: 8

Patch Set 9 : Allow overlapping sync and async startup requests - fix code review Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+486 lines, -407 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java View 1 2 3 4 5 2 chunks +4 lines, -8 lines 0 comments Download
M chrome/app/android/chrome_main_delegate_android.cc View 1 1 chunk +7 lines, -1 line 0 comments Download
M content/app/android/content_main.cc View 6 1 chunk +9 lines, -4 lines 0 comments Download
D content/browser/android/android_browser_process.h View 1 2 3 4 5 1 chunk +0 lines, -16 lines 0 comments Download
D content/browser/android/android_browser_process.cc View 1 2 3 4 5 1 chunk +0 lines, -47 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/android/browser_startup_controller.cc View 1 2 3 4 5 6 2 chunks +31 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.h View 1 2 3 3 chunks +7 lines, -1 line 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -22 lines 0 comments Download
M content/browser/browser_main_runner.cc View 1 2 3 4 5 6 7 8 3 chunks +54 lines, -47 lines 0 comments Download
M content/browser/startup_task_runner.h View 1 2 3 4 5 6 2 chunks +10 lines, -10 lines 0 comments Download
M content/browser/startup_task_runner.cc View 1 2 3 4 5 6 2 chunks +29 lines, -21 lines 0 comments Download
M content/browser/startup_task_runner_unittest.cc View 1 2 3 4 5 6 5 chunks +20 lines, -25 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M content/content_jni.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java View 1 2 3 4 5 1 chunk +11 lines, -93 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java View 1 2 3 4 5 6 7 8 6 chunks +132 lines, -48 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java View 1 2 3 4 5 6 15 chunks +122 lines, -46 lines 0 comments Download
M content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java View 1 2 3 4 5 3 chunks +8 lines, -10 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
aberent
This fixes a problem with my previous CL (https://codereview.chromium.org/22691002/) which is causing a number of ...
7 years, 4 months ago (2013-08-08 18:27:20 UTC) #1
joth
aw/ and content/ lgtm assuming it's safe to switch from BrowserStartupConfig.setAsync() mode to setSync() mode ...
7 years, 4 months ago (2013-08-08 18:44:38 UTC) #2
jam
This seems a bit complicated. Why can't we, when "starting" for the second time, just ...
7 years, 4 months ago (2013-08-08 20:54:12 UTC) #3
aberent
On 2013/08/08 20:54:12, jam wrote: > This seems a bit complicated. Why can't we, when ...
7 years, 4 months ago (2013-08-08 21:29:20 UTC) #4
aberent
On 2013/08/08 21:29:20, aberent wrote: > On 2013/08/08 20:54:12, jam wrote: > > This seems ...
7 years, 4 months ago (2013-08-19 16:05:30 UTC) #5
aberent
7 years, 4 months ago (2013-08-19 16:06:27 UTC) #6
Yaron
On 2013/08/19 16:06:27, aberent wrote: aberent: is this ready for review?
7 years, 4 months ago (2013-08-19 16:56:22 UTC) #7
aberent
On 2013/08/19 16:56:22, Yaron wrote: > On 2013/08/19 16:06:27, aberent wrote: > > aberent: is ...
7 years, 4 months ago (2013-08-19 17:07:25 UTC) #8
aberent
On 2013/08/19 17:07:25, aberent wrote: > On 2013/08/19 16:56:22, Yaron wrote: > > On 2013/08/19 ...
7 years, 4 months ago (2013-08-19 20:05:57 UTC) #9
Yaron
At a high-level looks fine. It's a shame to have to keep both this and ...
7 years, 4 months ago (2013-08-20 06:08:52 UTC) #10
aberent
https://codereview.chromium.org/22691002/diff/31001/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java File chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java (right): https://codereview.chromium.org/22691002/diff/31001/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java#newcode68 chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java:68: if (!AndroidBrowserProcess.init(this, AndroidBrowserProcess.MAX_RENDERERS_LIMIT, true, On 2013/08/20 06:08:52, Yaron wrote: ...
7 years, 4 months ago (2013-08-20 13:32:17 UTC) #11
aberent
On 2013/08/20 13:32:17, aberent wrote: > https://codereview.chromium.org/22691002/diff/31001/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java > File > chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java > (right): > > ...
7 years, 4 months ago (2013-08-21 21:15:06 UTC) #12
Yaron
mostly lg. just one question and Tommy should review BrowserSTartupController and test chanegs https://codereview.chromium.org/22691002/diff/40001/content/app/android/content_main.cc File ...
7 years, 4 months ago (2013-08-22 06:00:26 UTC) #13
nyquist
https://codereview.chromium.org/22691002/diff/40001/content/browser/android/browser_startup_controller.cc File content/browser/android/browser_startup_controller.cc (right): https://codereview.chromium.org/22691002/diff/40001/content/browser/android/browser_startup_controller.cc#newcode9 content/browser/android/browser_startup_controller.cc:9: #include "base/debug/debugger.h" unused import? https://codereview.chromium.org/22691002/diff/40001/content/browser/android/browser_startup_controller.cc#newcode10 content/browser/android/browser_startup_controller.cc:10: #include "base/logging.h" unused ...
7 years, 4 months ago (2013-08-23 06:28:32 UTC) #14
aberent
New patch will follow once I have tested these changes. https://codereview.chromium.org/22691002/diff/2001/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java File content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java (right): https://codereview.chromium.org/22691002/diff/2001/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java#newcode99 ...
7 years, 4 months ago (2013-08-23 11:40:20 UTC) #15
nyquist
lgtm I like the end result of this! https://codereview.chromium.org/22691002/diff/58001/content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java File content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java (right): https://codereview.chromium.org/22691002/diff/58001/content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java#newcode162 content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java:162: if( ...
7 years, 4 months ago (2013-08-23 15:58:03 UTC) #16
aberent
https://codereview.chromium.org/22691002/diff/58001/content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java File content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java (right): https://codereview.chromium.org/22691002/diff/58001/content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java#newcode162 content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java:162: if( contentStart() > 0) { On 2013/08/23 15:58:04, nyquist ...
7 years, 4 months ago (2013-08-23 16:36:19 UTC) #17
Yaron
lgtm
7 years, 4 months ago (2013-08-23 17:03:28 UTC) #18
jam
lgtm
7 years, 3 months ago (2013-08-26 13:37:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/22691002/54002
7 years, 3 months ago (2013-08-27 09:01:06 UTC) #20
commit-bot: I haz the power
7 years, 3 months ago (2013-08-27 15:30:02 UTC) #21
Message was sent while issue was closed.
Change committed as 219795

Powered by Google App Engine
This is Rietveld 408576698