| 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..01875e9f2bc1ecda8e8a285c1cbf79e73e6a6164 100644
|
| --- a/chrome/test/base/testing_profile.cc
|
| +++ b/chrome/test/base/testing_profile.cc
|
| @@ -700,6 +700,17 @@ Profile* TestingProfile::GetOffTheRecordProfile() {
|
| return incognito_profile_.get();
|
| }
|
|
|
| +void TestingProfile::DestroyOffTheRecordProfile() {
|
| + if (!incognito_profile_)
|
| + return;
|
| +
|
| + 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;
|
| }
|
|
|