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

Unified Diff: base/tuple.h

Issue 4752003: Adding CHECKs to troubleshoot the crash issue tuple.h/browser_render_process_host.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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 | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/tuple.h
diff --git a/base/tuple.h b/base/tuple.h
index b67d924906aa2642cff57d9e46e8fafe0bfe4094..bfe65628af8adc6e4e2f2143b978b1907773c8b8 100644
--- a/base/tuple.h
+++ b/base/tuple.h
@@ -544,6 +544,13 @@ inline void DispatchToMethod(ObjT* obj, Method method, const A& arg) {
template <class ObjT, class Method, class A>
inline void DispatchToMethod(ObjT* obj, Method method, const Tuple1<A>& arg) {
+
+#if defined(OS_CHROMEOS) && defined(CHECK)
+ // To troubleshoot crosbug.com/7327.
+ CHECK(obj);
+ CHECK(&arg);
+ CHECK(method);
+#endif
(obj->*method)(arg.a);
}
« no previous file with comments | « no previous file | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698