Index: chrome/browser/sync/glue/http_bridge_unittest.cc |
diff --git a/chrome/browser/sync/glue/http_bridge_unittest.cc b/chrome/browser/sync/glue/http_bridge_unittest.cc |
index 0e8bedb5494b209a3a1f65b3875c0b79aa3d87bc..9a60966246bb71d470a7a4cf631b09b13cec29db 100644 |
--- a/chrome/browser/sync/glue/http_bridge_unittest.cc |
+++ b/chrome/browser/sync/glue/http_bridge_unittest.cc |
@@ -33,10 +33,12 @@ class HttpBridgeTest : public testing::Test { |
} |
virtual void TearDown() { |
- GetIOThreadLoop()->ReleaseSoon(FROM_HERE, |
- fake_default_request_context_getter_); |
+ if (fake_default_request_context_getter_) { |
+ GetIOThreadLoop()->ReleaseSoon(FROM_HERE, |
+ fake_default_request_context_getter_); |
+ fake_default_request_context_getter_ = NULL; |
+ } |
io_thread_.Stop(); |
- fake_default_request_context_getter_ = NULL; |
} |
HttpBridge* BuildBridge() { |