| Index: chrome/test/base/testing_profile.cc
|
| diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
|
| index 943b927e2c7b13d187010018dfd507a7fce8f391..47f9ad2f921351bb0dddc6c1505a6aa7ce518b87 100644
|
| --- a/chrome/test/base/testing_profile.cc
|
| +++ b/chrome/test/base/testing_profile.cc
|
| @@ -700,6 +700,14 @@ Profile* TestingProfile::GetOffTheRecordProfile() {
|
| return incognito_profile_.get();
|
| }
|
|
|
| +void TestingProfile::DestroyOffTheRecordProfile() {
|
| + content::NotificationService::current()->Notify(
|
| + chrome::NOTIFICATION_PROFILE_DESTROYED,
|
| + content::Source<Profile>(incognito_profile_.get()),
|
| + content::NotificationService::NoDetails());
|
| + incognito_profile_.reset();
|
| +}
|
| +
|
| bool TestingProfile::HasOffTheRecordProfile() {
|
| return incognito_profile_.get() != NULL;
|
| }
|
|
|