Index: chrome/browser/services/gcm/gcm_profile_service.cc |
diff --git a/chrome/browser/services/gcm/gcm_profile_service.cc b/chrome/browser/services/gcm/gcm_profile_service.cc |
index 59276833274fe0faa094b7dff6b6fbca462a5673..4d8abb8aff2ad65077e2d97802dff72b888d621f 100644 |
--- a/chrome/browser/services/gcm/gcm_profile_service.cc |
+++ b/chrome/browser/services/gcm/gcm_profile_service.cc |
@@ -543,7 +543,7 @@ GCMProfileService::GCMProfileService(Profile* profile) |
: profile_(profile), |
gcm_client_ready_(false), |
weak_ptr_factory_(this) { |
- DCHECK(!profile->IsOffTheRecord()); |
+ DCHECK(!profile || !profile->IsOffTheRecord()); |
jianli
2014/03/20 16:47:30
GCMProfileService depends on profile. Even you mak
Mattias Nissler (ping if slow)
2014/03/20 16:51:26
I added this just to get FakeGCMProfileService in
jianli
2014/03/20 16:56:28
Skipping the check in GCMProfileService constructo
Mattias Nissler (ping if slow)
2014/03/20 17:07:37
I'd agree if we were talking about an integration
|
} |
GCMProfileService::~GCMProfileService() { |