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

Unified Diff: base/sequenced_task_runner_helpers.h

Issue 522643003: [DoDelete] Hold function name in Deletehelper::DoDelete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/sequenced_task_runner_helpers.h
diff --git a/base/sequenced_task_runner_helpers.h b/base/sequenced_task_runner_helpers.h
index 2d0d493290a934160fde454dc9f3542b0711cbe1..325555ed6334d28400903e8658e8d3645a7c3cf0 100644
--- a/base/sequenced_task_runner_helpers.h
+++ b/base/sequenced_task_runner_helpers.h
@@ -6,6 +6,7 @@
#define BASE_SEQUENCED_TASK_RUNNER_HELPERS_H_
#include "base/basictypes.h"
+#include "base/debug/alias.h"
// TODO(akalin): Investigate whether it's possible to just have
// SequencedTaskRunner use these helpers (instead of MessageLoop).
@@ -36,6 +37,10 @@ class DeleteHelper {
template <class T2, class R> friend class subtle::DeleteHelperInternal;
static void DoDelete(const void* object) {
+ // TODO(tzik): Remove this after http://crbug.com/393634 is fixed.
+ const char* function_name = __FUNCTION__;
+ debug::Alias(&function_name);
+
delete reinterpret_cast<const T*>(object);
}
« 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