Also delay regular profile destruction...

A previous CL delayed the destruction of Off The Record profiles, but there are cases where they are delayed post destruction of their original profile... no good...

So we now delay the destruction of both the off the record profile and it's original profile when either of them is still referenced by a render process host.

BUG=114245
TEST=unittest --gtest_filter=ProfileDestroyerTest.*

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123082

Got reverted because of failures in extension api tests, so trying again with fix in extension tests to avoid an infobar leak, which was keeping a render process host alive for too long and causing an assert that not all profiles were destroyed...

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138038 0039d316-1c4b-4281-b951-d872f2087c98
15 files changed