summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-26 07:07:33 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-26 07:07:33 +0000
commit4ac57cb00857849629e86c285890624f0cc6363a (patch)
treef628836a66bcf3ed0cb5418d7105630ab7bd0b0e /base
parentef8963176d74f4a3aef6d172c2a13e41cee49035 (diff)
downloadchromium_src-4ac57cb00857849629e86c285890624f0cc6363a.zip
chromium_src-4ac57cb00857849629e86c285890624f0cc6363a.tar.gz
chromium_src-4ac57cb00857849629e86c285890624f0cc6363a.tar.bz2
fix broken test that assumed it could cache MessageLoop::current() in a static variable
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1369 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/timer_unittest.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/base/timer_unittest.cc b/base/timer_unittest.cc
index ab13c08..1d1a964 100644
--- a/base/timer_unittest.cc
+++ b/base/timer_unittest.cc
@@ -44,8 +44,7 @@ class TimerTask : public Task {
private:
static MessageLoop* message_loop() {
- static MessageLoop* loop = MessageLoop::current();
- return loop;
+ return MessageLoop::current();
}
static int timer_count_;