Move PROFILE_DESTROYED notification to ProfileDestroyer and observe it in ExtensionProcessManager.
1. EPM was not observing the correct notification to shut down its ExtensionHosts. 2. PROFILE_DESTROYED has to be sent early enough that the EPM can shut down ExtensionHosts before the ProfileDestroyer checks that all renderers are gone. BUG=138843 TEST=In Debug build, have a split mode incognito extension installed. Open and close an incognito window; no crash. Close the regular profile window; no crash. TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10824020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148674 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment