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

Unified Diff: chrome/browser/sync/glue/sync_backend_host_impl.cc

Issue 218903005: Make push messaging not create InvalidationService for login and guest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make code resilient against tests that do not create the Default profile first. 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/sync/glue/sync_backend_host_impl.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host_impl.cc b/chrome/browser/sync/glue/sync_backend_host_impl.cc
index 4c202f0d8e9038f1cd51ea47467dea622e9c1296..5ede41cc434320ec087782443afca757546194ba 100644
--- a/chrome/browser/sync/glue/sync_backend_host_impl.cc
+++ b/chrome/browser/sync/glue/sync_backend_host_impl.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/sync/glue/sync_backend_host_impl.h"
#include "base/command_line.h"
+#include "base/logging.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/invalidation/invalidation_service.h"
#include "chrome/browser/invalidation/invalidation_service_factory.h"
@@ -59,6 +60,7 @@ SyncBackendHostImpl::SyncBackendHostImpl(
invalidation::InvalidationServiceFactory::GetForProfile(profile)),
invalidation_handler_registered_(false),
weak_ptr_factory_(this) {
+ CHECK(invalidator_);
core_ = new SyncBackendHostCore(
name_,
profile_->GetPath().Append(kSyncDataFolderName),

Powered by Google App Engine
This is Rietveld 408576698