summaryrefslogtreecommitdiffstats
path: root/rlz/lib
diff options
context:
space:
mode:
Diffstat (limited to 'rlz/lib')
-rw-r--r--rlz/lib/financial_ping.cc13
-rw-r--r--rlz/lib/rlz_lib_test.cc2
2 files changed, 8 insertions, 7 deletions
diff --git a/rlz/lib/financial_ping.cc b/rlz/lib/financial_ping.cc
index 48c446e..5a70641 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();
diff --git a/rlz/lib/rlz_lib_test.cc b/rlz/lib/rlz_lib_test.cc
index b5ef72e..f21c540 100644
--- a/rlz/lib/rlz_lib_test.cc
+++ b/rlz/lib/rlz_lib_test.cc
@@ -427,7 +427,7 @@ TEST_F(RlzLibTest, SendFinancialPing) {
#endif
base::Thread::Options options;
- options.message_loop_type = MessageLoop::TYPE_IO;
+ options.message_loop_type = base::MessageLoop::TYPE_IO;
base::Thread io_thread("rlz_unittest_io_thread");
ASSERT_TRUE(io_thread.StartWithOptions(options));