Fix race condition in WebstoreInstallHelper.
commit8457c218e1df6bf2789658cd9c6205c08c2f1d41
authortreib <treib@chromium.org>
Mon, 1 Jun 2015 09:05:37 +0000 (1 02:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 1 Jun 2015 09:06:18 +0000 (1 09:06 +0000)
tree28666e6769a10e0ba44bd4e3dcaa1a8b3412bae2
parent71b5acd9b9023c33fa2998b71439b8808aec8aa6
Fix race condition in WebstoreInstallHelper.

Before this CL, several member variables were accessed concurrently on the UI and IO threads. Fix this by using the SafeJsonParser helper class which handles the thread hopping, so that the WebstoreInstallHelper can live completely on the UI thread.

Review URL: https://codereview.chromium.org/1153143002

Cr-Commit-Position: refs/heads/master@{#332171}
chrome/browser/extensions/webstore_install_helper.cc
chrome/browser/extensions/webstore_install_helper.h