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

Unified Diff: chromeos/dbus/shill_service_client_stub.cc

Issue 15774005: chromeos: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 | « chromeos/dbus/shill_profile_client_stub.cc ('k') | chromeos/dbus/sms_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/shill_service_client_stub.cc
diff --git a/chromeos/dbus/shill_service_client_stub.cc b/chromeos/dbus/shill_service_client_stub.cc
index d4e131dbe6a17ce72fe5cd784d1e9e4e692ad370..0c0d2f9324b5c700c2b0092c416c0333a06c3419 100644
--- a/chromeos/dbus/shill_service_client_stub.cc
+++ b/chromeos/dbus/shill_service_client_stub.cc
@@ -86,7 +86,7 @@ void ShillServiceClientStub::GetProperties(
call_status = DBUS_METHOD_CALL_FAILURE;
}
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&PassStubServiceProperties,
callback,
@@ -120,13 +120,13 @@ void ShillServiceClientStub::SetProperty(const dbus::ObjectPath& service_path,
}
}
dict->SetWithoutPathExpansion(name, value.DeepCopy());
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&ShillServiceClientStub::NotifyObserversPropertyChanged,
weak_ptr_factory_.GetWeakPtr(), service_path, name));
if (callback.is_null())
return;
- MessageLoop::current()->PostTask(FROM_HERE, callback);
+ base::MessageLoop::current()->PostTask(FROM_HERE, callback);
}
void ShillServiceClientStub::ClearProperty(
@@ -141,13 +141,13 @@ void ShillServiceClientStub::ClearProperty(
return;
}
dict->Remove(name, NULL);
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&ShillServiceClientStub::NotifyObserversPropertyChanged,
weak_ptr_factory_.GetWeakPtr(), service_path, name));
if (callback.is_null())
return;
- MessageLoop::current()->PostTask(FROM_HERE, callback);
+ base::MessageLoop::current()->PostTask(FROM_HERE, callback);
}
void ShillServiceClientStub::ClearProperties(
@@ -169,7 +169,7 @@ void ShillServiceClientStub::ClearProperties(
}
for (std::vector<std::string>::const_iterator iter = names.begin();
iter != names.end(); ++iter) {
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(
&ShillServiceClientStub::NotifyObserversPropertyChanged,
@@ -177,7 +177,7 @@ void ShillServiceClientStub::ClearProperties(
}
if (callback.is_null())
return;
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&PassStubListValue,
callback, base::Owned(results.release())));
@@ -204,7 +204,7 @@ void ShillServiceClientStub::Connect(const dbus::ObjectPath& service_path,
}
// Set Online after a delay
base::StringValue online_value(flimflam::kStateOnline);
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&ShillServiceClientStub::SetProperty,
weak_ptr_factory_.GetWeakPtr(),
@@ -233,7 +233,7 @@ void ShillServiceClientStub::Disconnect(const dbus::ObjectPath& service_path,
}
// Set Idle after a delay
base::StringValue idle_value(flimflam::kStateIdle);
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&ShillServiceClientStub::SetProperty,
weak_ptr_factory_.GetWeakPtr(),
@@ -251,7 +251,7 @@ void ShillServiceClientStub::Remove(const dbus::ObjectPath& service_path,
const ErrorCallback& error_callback) {
if (callback.is_null())
return;
- MessageLoop::current()->PostTask(FROM_HERE, callback);
+ base::MessageLoop::current()->PostTask(FROM_HERE, callback);
}
void ShillServiceClientStub::ActivateCellularModem(
@@ -261,7 +261,7 @@ void ShillServiceClientStub::ActivateCellularModem(
const ErrorCallback& error_callback) {
if (callback.is_null())
return;
- MessageLoop::current()->PostTask(FROM_HERE, callback);
+ base::MessageLoop::current()->PostTask(FROM_HERE, callback);
}
void ShillServiceClientStub::CompleteCellularActivation(
@@ -270,7 +270,7 @@ void ShillServiceClientStub::CompleteCellularActivation(
const ErrorCallback& error_callback) {
if (callback.is_null())
return;
- MessageLoop::current()->PostTask(FROM_HERE, callback);
+ base::MessageLoop::current()->PostTask(FROM_HERE, callback);
}
bool ShillServiceClientStub::CallActivateCellularModemAndBlock(
« no previous file with comments | « chromeos/dbus/shill_profile_client_stub.cc ('k') | chromeos/dbus/sms_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698