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 6adba5c26ca466947096d45d59b40ce047a64bee..9c287d23c32f65ab4b962d6a400109ef42e54729 100644 |
--- a/chrome/test/live_sync/live_sync_test.cc |
+++ b/chrome/test/live_sync/live_sync_test.cc |
@@ -335,6 +335,7 @@ bool LiveSyncTest::SetUpLocalPythonTestServer() { |
net::HostPortPair xmpp_host_port_pair(sync_server_.host_port_pair()); |
xmpp_host_port_pair.set_port(xmpp_port); |
+ xmpp_port_.reset(new net::ScopedPortException(xmpp_port)); |
if (!cl->HasSwitch(switches::kSyncNotificationHost)) { |
cl->AppendSwitchASCII(switches::kSyncNotificationHost, |
@@ -379,6 +380,7 @@ bool LiveSyncTest::TearDownLocalPythonTestServer() { |
LOG(ERROR) << "Could not stop local python test server."; |
return false; |
} |
+ xmpp_port_.reset(); |
return true; |
} |