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

Unified Diff: blimp/client/core/context/blimp_client_context_impl.cc

Issue 2485323002: Fix delegate check BlimpClientContextImpl::SetDelegate (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | blimp/client/core/context/blimp_client_context_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/context/blimp_client_context_impl.cc
diff --git a/blimp/client/core/context/blimp_client_context_impl.cc b/blimp/client/core/context/blimp_client_context_impl.cc
index e6261240351f4980986032c4ecd77014baee57bd..b870611507e9c3ed499c2c5d759ca71be2d5ee88 100644
--- a/blimp/client/core/context/blimp_client_context_impl.cc
+++ b/blimp/client/core/context/blimp_client_context_impl.cc
@@ -158,7 +158,7 @@ BlimpClientContextImpl::~BlimpClientContextImpl() {
}
void BlimpClientContextImpl::SetDelegate(BlimpClientContextDelegate* delegate) {
- DCHECK(!delegate_ && delegate);
+ DCHECK(!delegate_ || !delegate);
delegate_ = delegate;
// TODO(xingliu): Pass the IdentityProvider needed by |assignment_fetcher_|
« no previous file with comments | « no previous file | blimp/client/core/context/blimp_client_context_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698