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

Unified Diff: chrome/browser/sync/glue/http_bridge_unittest.cc

Issue 9022034: Convert various ReleaseSoon methods to use base::Bind() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 9 years 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 | « base/task.h ('k') | content/public/browser/browser_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « base/task.h ('k') | content/public/browser/browser_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698