summaryrefslogtreecommitdiffstats
path: root/chromeos
diff options
context:
space:
mode:
authorgspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 21:35:22 +0000
committergspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 21:35:22 +0000
commitc5cd4cbf14f771b991eac013ab8a6d727bb9f6e7 (patch)
tree82229be879923c3cb6241a70e25713243355ca8f /chromeos
parentffd994bed5fb9f46a8fabccb6ae0294af8bb1163 (diff)
downloadchromium_src-c5cd4cbf14f771b991eac013ab8a6d727bb9f6e7.zip
chromium_src-c5cd4cbf14f771b991eac013ab8a6d727bb9f6e7.tar.gz
chromium_src-c5cd4cbf14f771b991eac013ab8a6d727bb9f6e7.tar.bz2
This adds a private extension API to use for simple networking
requests (connect/disconnect/visible networks, etc). (TBR'ing owners for chrome/ because of simple addition of files to chrome_browser_chromeos.gypi) TBR=sky@chromium.org BUG=chromium:168713 TEST=ran new browser api test Review URL: https://chromiumcodereview.appspot.com/11975015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180525 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos')
-rw-r--r--chromeos/dbus/shill_service_client.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chromeos/dbus/shill_service_client.cc b/chromeos/dbus/shill_service_client.cc
index 16d7767..8e0ede0 100644
--- a/chromeos/dbus/shill_service_client.cc
+++ b/chromeos/dbus/shill_service_client.cc
@@ -312,6 +312,11 @@ class ShillServiceClientStubImpl : public ShillServiceClient,
virtual void Connect(const dbus::ObjectPath& service_path,
const base::Closure& callback,
const ErrorCallback& error_callback) OVERRIDE {
+ base::Value* service;
+ if (!stub_services_.Get(service_path.value(), &service)) {
+ error_callback.Run("Error.InvalidService", "Invalid Service");
+ return;
+ }
// Set Associating
base::StringValue associating_value(flimflam::kStateAssociation);
SetServiceProperty(service_path.value(),