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

Unified Diff: base/callback_registry.h

Issue 23619027: Fix CallbackRegistry on Win7 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/callback_registry.h
diff --git a/base/callback_registry.h b/base/callback_registry.h
index b0310dfd8c26927b10e672b345a61c6e50a28ae3..fcacbf549f2a79412130e0b1d902715a9663cca0 100644
--- a/base/callback_registry.h
+++ b/base/callback_registry.h
@@ -125,9 +125,11 @@ class CallbackRegistryBase {
while ((list_iter_ != list_->callbacks_.end()) && list_iter_->is_null())
++list_iter_;
- CallbackType* cb =
- list_iter_ != list_->callbacks_.end() ? &(*list_iter_) : NULL;
- ++list_iter_;
+ CallbackType* cb = NULL;
+ if (list_iter_ != list_->callbacks_.end()) {
+ cb = &(*list_iter_);
+ ++list_iter_;
+ }
return cb;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698