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

Unified Diff: chrome/test/live_sync/live_sync_test.cc

Issue 6251004: Sync: Clean up fake URLFetcher factory prior to browser shut down (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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: chrome/test/live_sync/live_sync_test.cc
diff --git a/chrome/test/live_sync/live_sync_test.cc b/chrome/test/live_sync/live_sync_test.cc
index e2270fafc9ec4a9d7535e5dbef1547c432cb3a58..ed9f48adb1881ed435791c2ea42046e4e4a8bc14 100644
--- a/chrome/test/live_sync/live_sync_test.cc
+++ b/chrome/test/live_sync/live_sync_test.cc
@@ -182,10 +182,6 @@ void LiveSyncTest::TearDown() {
// Stop the local sync test server. This is a no-op if one wasn't started.
TearDownLocalTestServer();
-
- // Switch back to using the default URLFetcher factory. This is a no-op if
- // a fake factory wasn't used.
- URLFetcher::set_factory(NULL);
}
// static
@@ -281,6 +277,10 @@ void LiveSyncTest::SetUpInProcessBrowserTestFixture() {
void LiveSyncTest::TearDownInProcessBrowserTestFixture() {
mock_host_resolver_override_.reset();
+
+ // Switch back to using the default URLFetcher factory. This is a no-op if
+ // a fake factory wasn't used.
+ URLFetcher::set_factory(NULL);
}
void LiveSyncTest::ReadPasswordFile() {
« 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