Index: rlz/lib/financial_ping.cc |
diff --git a/rlz/lib/financial_ping.cc b/rlz/lib/financial_ping.cc |
index 48c446ecb3c8e405d0c37f3a4bbf298bde1047f7..25d9e75167c8b475498212b3ee426a8c11d58f3e 100644 |
--- a/rlz/lib/financial_ping.cc |
+++ b/rlz/lib/financial_ping.cc |
@@ -265,6 +265,10 @@ bool FinancialPing::PingServer(const char* request, std::string* response) { |
return true; |
#else |
+ // Browser shutdown will cause the context to be reset to NULL. |
+ if (!g_context) |
+ return false; |
+ |
// Run a blocking event loop to match the win inet implementation. |
scoped_ptr<MessageLoop> message_loop; |
// Ensure that we have a MessageLoop. |
@@ -288,7 +292,6 @@ bool FinancialPing::PingServer(const char* request, std::string* response) { |
// Ensure rlz_lib::SetURLRequestContext() has been called before sending |
// pings. |
- CHECK(g_context); |
fetcher->SetRequestContext(g_context); |
const base::TimeDelta kTimeout = base::TimeDelta::FromMinutes(5); |