Commit 080adba9 authored by timurrrr@chromium.org's avatar timurrrr@chromium.org

Add null pointer checks to TestingProfile

BUG=96010
TEST=trybots

Review URL: http://codereview.chromium.org/8831005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113429 0039d316-1c4b-4281-b951-d872f2087c98
parent 9a578392
...@@ -204,6 +204,7 @@ void TestingProfile::Init() { ...@@ -204,6 +204,7 @@ void TestingProfile::Init() {
} }
void TestingProfile::FinishInit() { void TestingProfile::FinishInit() {
DCHECK(content::NotificationService::current());
content::NotificationService::current()->Notify( content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PROFILE_CREATED, chrome::NOTIFICATION_PROFILE_CREATED,
content::Source<Profile>(static_cast<Profile*>(this)), content::Source<Profile>(static_cast<Profile*>(this)),
...@@ -214,6 +215,7 @@ void TestingProfile::FinishInit() { ...@@ -214,6 +215,7 @@ void TestingProfile::FinishInit() {
} }
TestingProfile::~TestingProfile() { TestingProfile::~TestingProfile() {
DCHECK(content::NotificationService::current());
content::NotificationService::current()->Notify( content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PROFILE_DESTROYED, chrome::NOTIFICATION_PROFILE_DESTROYED,
content::Source<Profile>(static_cast<Profile*>(this)), content::Source<Profile>(static_cast<Profile*>(this)),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment