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

Unified Diff: rlz/lib/financial_ping.cc

Issue 14520024: rlz: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | rlz/lib/rlz_lib_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/lib/financial_ping.cc
diff --git a/rlz/lib/financial_ping.cc b/rlz/lib/financial_ping.cc
index 48c446ecb3c8e405d0c37f3a4bbf298bde1047f7..5a70641608ad30ce50e0233f832ea28d0c7dc678 100644
--- a/rlz/lib/financial_ping.cc
+++ b/rlz/lib/financial_ping.cc
@@ -266,10 +266,10 @@ bool FinancialPing::PingServer(const char* request, std::string* response) {
return true;
#else
// Run a blocking event loop to match the win inet implementation.
- scoped_ptr<MessageLoop> message_loop;
+ scoped_ptr<base::MessageLoop> message_loop;
// Ensure that we have a MessageLoop.
- if (!MessageLoop::current())
- message_loop.reset(new MessageLoop);
+ if (!base::MessageLoop::current())
+ message_loop.reset(new base::MessageLoop);
base::RunLoop loop;
FinancialPingUrlFetcherDelegate delegate(loop.QuitClosure());
@@ -292,11 +292,12 @@ bool FinancialPing::PingServer(const char* request, std::string* response) {
fetcher->SetRequestContext(g_context);
const base::TimeDelta kTimeout = base::TimeDelta::FromMinutes(5);
- MessageLoop::ScopedNestableTaskAllower allow_nested(MessageLoop::current());
- MessageLoop::current()->PostTask(
+ base::MessageLoop::ScopedNestableTaskAllower allow_nested(
+ base::MessageLoop::current());
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&net::URLFetcher::Start, base::Unretained(fetcher.get())));
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE, loop.QuitClosure(), kTimeout);
loop.Run();
« no previous file with comments | « no previous file | rlz/lib/rlz_lib_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698