summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/shill_ipconfig_client.cc
diff options
context:
space:
mode:
authorstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-10 22:34:33 +0000
committerstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-10 22:34:33 +0000
commit7c137a880f1e4f80d72bfa05ca5598613c8cf6cc (patch)
tree41798e3b58690fb6b9e9f6060d359aa0595cb2e7 /chromeos/dbus/shill_ipconfig_client.cc
parentca94643b96d80e3ca1f62be7684601a4a1965cb9 (diff)
downloadchromium_src-7c137a880f1e4f80d72bfa05ca5598613c8cf6cc.zip
chromium_src-7c137a880f1e4f80d72bfa05ca5598613c8cf6cc.tar.gz
chromium_src-7c137a880f1e4f80d72bfa05ca5598613c8cf6cc.tar.bz2
Use NetworkConfigurationHandler to connect from status area
BUG=161869 For chrome/browser/ui/webui/options/chromeos TBR=nkostylev@chromium.org Review URL: https://codereview.chromium.org/11428158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172156 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/shill_ipconfig_client.cc')
-rw-r--r--chromeos/dbus/shill_ipconfig_client.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chromeos/dbus/shill_ipconfig_client.cc b/chromeos/dbus/shill_ipconfig_client.cc
index 79e81f5..fa99a2b 100644
--- a/chromeos/dbus/shill_ipconfig_client.cc
+++ b/chromeos/dbus/shill_ipconfig_client.cc
@@ -190,6 +190,8 @@ class ShillIPConfigClientStubImpl : public ShillIPConfigClient {
virtual void GetProperties(const dbus::ObjectPath& ipconfig_path,
const DictionaryValueCallback& callback) OVERRIDE {
+ if (callback.is_null())
+ return;
MessageLoop::current()->PostTask(
FROM_HERE, base::Bind(&ShillIPConfigClientStubImpl::PassProperties,
weak_ptr_factory_.GetWeakPtr(),
@@ -205,6 +207,8 @@ class ShillIPConfigClientStubImpl : public ShillIPConfigClient {
const std::string& name,
const base::Value& value,
const VoidDBusMethodCallback& callback) OVERRIDE {
+ if (callback.is_null())
+ return;
MessageLoop::current()->PostTask(
FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS));
}
@@ -212,12 +216,16 @@ class ShillIPConfigClientStubImpl : public ShillIPConfigClient {
virtual void ClearProperty(const dbus::ObjectPath& ipconfig_path,
const std::string& name,
const VoidDBusMethodCallback& callback) OVERRIDE {
+ if (callback.is_null())
+ return;
MessageLoop::current()->PostTask(
FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS));
}
virtual void Remove(const dbus::ObjectPath& ipconfig_path,
const VoidDBusMethodCallback& callback) OVERRIDE {
+ if (callback.is_null())
+ return;
MessageLoop::current()->PostTask(
FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS));
}