summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/fake_session_manager_client.cc
diff options
context:
space:
mode:
authorxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-29 23:04:36 +0000
committerxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-29 23:04:36 +0000
commitdf90563783a730f075af5df62e91d718d17107bb (patch)
tree575312351ec6ddaea9860c58d47c30bc18a05013 /chromeos/dbus/fake_session_manager_client.cc
parent0488716e86b6a13209fa977fd0e0b89516a6a03c (diff)
downloadchromium_src-df90563783a730f075af5df62e91d718d17107bb.zip
chromium_src-df90563783a730f075af5df62e91d718d17107bb.tar.gz
chromium_src-df90563783a730f075af5df62e91d718d17107bb.tar.bz2
chromeos: Use base::MessageLoop.
BUG=236029 R=oshima@chromium.org Review URL: https://codereview.chromium.org/15774005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202997 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/fake_session_manager_client.cc')
-rw-r--r--chromeos/dbus/fake_session_manager_client.cc20
1 files changed, 9 insertions, 11 deletions
diff --git a/chromeos/dbus/fake_session_manager_client.cc b/chromeos/dbus/fake_session_manager_client.cc
index 6e5c162..c935f9a 100644
--- a/chromeos/dbus/fake_session_manager_client.cc
+++ b/chromeos/dbus/fake_session_manager_client.cc
@@ -76,29 +76,27 @@ void FakeSessionManagerClient::NotifyLockScreenDismissed() {
void FakeSessionManagerClient::RetrieveActiveSessions(
const ActiveSessionsCallback& callback) {
- MessageLoop::current()->PostTask(FROM_HERE,
- base::Bind(callback,
- user_sessions_,
- true));
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(callback, user_sessions_, true));
}
void FakeSessionManagerClient::RetrieveDevicePolicy(
const RetrievePolicyCallback& callback) {
- MessageLoop::current()->PostTask(FROM_HERE,
- base::Bind(callback, device_policy_));
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::Bind(callback, device_policy_));
}
void FakeSessionManagerClient::RetrievePolicyForUser(
const std::string& username,
const RetrievePolicyCallback& callback) {
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE, base::Bind(callback, user_policies_[username]));
}
void FakeSessionManagerClient::RetrieveDeviceLocalAccountPolicy(
const std::string& account_id,
const RetrievePolicyCallback& callback) {
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(callback, device_local_account_policy_[account_id]));
}
@@ -107,7 +105,7 @@ void FakeSessionManagerClient::StoreDevicePolicy(
const std::string& policy_blob,
const StorePolicyCallback& callback) {
device_policy_ = policy_blob;
- MessageLoop::current()->PostTask(FROM_HERE, base::Bind(callback, true));
+ base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(callback, true));
FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(true));
}
@@ -117,7 +115,7 @@ void FakeSessionManagerClient::StorePolicyForUser(
const std::string& policy_key,
const StorePolicyCallback& callback) {
user_policies_[username] = policy_blob;
- MessageLoop::current()->PostTask(FROM_HERE, base::Bind(callback, true));
+ base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(callback, true));
}
void FakeSessionManagerClient::StoreDeviceLocalAccountPolicy(
@@ -125,7 +123,7 @@ void FakeSessionManagerClient::StoreDeviceLocalAccountPolicy(
const std::string& policy_blob,
const StorePolicyCallback& callback) {
device_local_account_policy_[account_id] = policy_blob;
- MessageLoop::current()->PostTask(FROM_HERE, base::Bind(callback, true));
+ base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(callback, true));
}
const std::string& FakeSessionManagerClient::device_policy() const {