diff options
author | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-28 20:07:16 +0000 |
---|---|---|
committer | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-28 20:07:16 +0000 |
commit | e445fc1edea19cb22d0df2123eff565c92f65dca (patch) | |
tree | 4675decea6f6461182367e557371ca424765d608 | |
parent | 5753b2422114ce01910435b651df84d4d0610970 (diff) | |
download | chromium_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.cc | 2 |
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( |