From 4bed5d848f83fdd740f533459fa7b6a1e7508f8c Mon Sep 17 00:00:00 2001 From: "ericroman@google.com" Date: Wed, 17 Dec 2008 03:50:05 +0000 Subject: Reverting 7125. removing the experiment Review URL: http://codereview.chromium.org/14188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7135 0039d316-1c4b-4281-b951-d872f2087c98 --- base/message_loop.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'base/message_loop.h') diff --git a/base/message_loop.h b/base/message_loop.h index 2e51234..6cd0ef4 100644 --- a/base/message_loop.h +++ b/base/message_loop.h @@ -269,19 +269,8 @@ class MessageLoop : public base::MessagePump::Delegate { bool operator<(const PendingTask& other) const; }; - // TEMP HACK: This is the same as std::less, except it has a data member. - // This should cause its storage to be initialized, therefore avoiding a - // UMR in pop(). Experiment for crbug.com/5555. - template - struct LessComparatorHack { - LessComparatorHack() : junk(42) {} - bool operator()(const T& a, const T& b) const { return a < b; } - int junk; - }; - typedef std::queue TaskQueue; - typedef std::priority_queue, - LessComparatorHack > DelayedTaskQueue; + typedef std::priority_queue DelayedTaskQueue; #if defined(OS_WIN) base::MessagePumpWin* pump_win() { -- cgit v1.1