Allow overlapping sync and async startup requests
commit232e09d18fa339b9dcb49f30d2e919fe673da1c5
authoraberent@chromium.org <aberent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 27 Aug 2013 15:29:56 +0000 (27 15:29 +0000)
committeraberent@chromium.org <aberent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 27 Aug 2013 15:29:56 +0000 (27 15:29 +0000)
treed1a7e8698c6a7fab8f3f7925a81760f18504d5f7
parentdc0fd43f60f29a9167f90cf1559ce1adc17d9969
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

Review URL: https://chromiumcodereview.appspot.com/22691002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219795 0039d316-1c4b-4281-b951-d872f2087c98
20 files changed:
android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java
chrome/app/android/chrome_main_delegate_android.cc
content/app/android/content_main.cc
content/browser/android/android_browser_process.cc [deleted file]
content/browser/android/android_browser_process.h [deleted file]
content/browser/android/browser_jni_registrar.cc
content/browser/android/browser_startup_controller.cc
content/browser/browser_main_loop.cc
content/browser/browser_main_loop.h
content/browser/browser_main_runner.cc
content/browser/startup_task_runner.cc
content/browser/startup_task_runner.h
content/browser/startup_task_runner_unittest.cc
content/content_browser.gypi
content/content_jni.gypi
content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java
content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java
content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java
content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java