diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-26 23:38:18 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-26 23:38:18 +0000 |
commit | 0e3a385d57bb5f0080e930b37fb8c6f14408cafb (patch) | |
tree | b50d9d3a38564f250866157e5157268defb7b786 /chrome/test/testing_profile.cc | |
parent | f90a0fb4d44ae9d3fca4adf05b76f187c09840f6 (diff) | |
download | chromium_src-0e3a385d57bb5f0080e930b37fb8c6f14408cafb.zip chromium_src-0e3a385d57bb5f0080e930b37fb8c6f14408cafb.tar.gz chromium_src-0e3a385d57bb5f0080e930b37fb8c6f14408cafb.tar.bz2 |
Profiles: When built in debug mode, NOTREACHED() after a Profile is shutdown if it is accessed.
BUG=77155
TEST=These extra NOTREACHED() don't trigger.
Review URL: http://codereview.chromium.org/7074019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86929 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_profile.cc')
-rw-r--r-- | chrome/test/testing_profile.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc index 0ae4404..3604f9d 100644 --- a/chrome/test/testing_profile.cc +++ b/chrome/test/testing_profile.cc @@ -128,6 +128,10 @@ TestingProfile::TestingProfile() incognito_(false), last_session_exited_cleanly_(true), profile_dependency_manager_(ProfileDependencyManager::GetInstance()) { +#ifndef NDEBUG + profile_dependency_manager_->ProfileNowExists(this); +#endif + if (!temp_dir_.CreateUniqueTempDir()) { LOG(ERROR) << "Failed to create unique temporary directory."; |