summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-28 20:07:16 +0000
committerrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-28 20:07:16 +0000
commite445fc1edea19cb22d0df2123eff565c92f65dca (patch)
tree4675decea6f6461182367e557371ca424765d608
parent5753b2422114ce01910435b651df84d4d0610970 (diff)
downloadchromium_src-e445fc1edea19cb22d0df2123eff565c92f65dca.zip
chromium_src-e445fc1edea19cb22d0df2123eff565c92f65dca.tar.gz
chromium_src-e445fc1edea19cb22d0df2123eff565c92f65dca.tar.bz2
sync: Remove unnecessary DCHECKs from about:sync
Removes a DCHECK in SyncBackendHostImpl that would trigger if we tried to register to observe protocol events (ie. open the about:sync page) before initialization was complete. This DCHECK was unnecessary, since there should be no harm in registering an observer before the sync backend is initialized. Allowing early registration makes the protocol logs useful for debugging more kinds of issues. BUG=365806 Review URL: https://codereview.chromium.org/254563005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266643 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/sync/glue/sync_backend_host_impl.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/chrome/browser/sync/glue/sync_backend_host_impl.cc b/chrome/browser/sync/glue/sync_backend_host_impl.cc
index 1d7e482..ac4eacd 100644
--- a/chrome/browser/sync/glue/sync_backend_host_impl.cc
+++ b/chrome/browser/sync/glue/sync_backend_host_impl.cc
@@ -485,7 +485,6 @@ SyncedDeviceTracker* SyncBackendHostImpl::GetSyncedDeviceTracker() const {
}
void SyncBackendHostImpl::RequestBufferedProtocolEventsAndEnableForwarding() {
- DCHECK(initialized());
registrar_->sync_thread()->message_loop()->PostTask(
FROM_HERE,
base::Bind(
@@ -494,7 +493,6 @@ void SyncBackendHostImpl::RequestBufferedProtocolEventsAndEnableForwarding() {
}
void SyncBackendHostImpl::DisableProtocolEventForwarding() {
- DCHECK(initialized());
registrar_->sync_thread()->message_loop()->PostTask(
FROM_HERE,
base::Bind(