Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Unified Diff: chrome/browser/services/gcm/gcm_profile_service.cc

Issue 179843002: Make invalidations work for Chrome OS Kiosk Apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {
« no previous file with comments | « chrome/browser/invalidation/ticl_invalidation_service_unittest.cc ('k') | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698