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

Unified Diff: chromeos/dbus/shill_service_client.cc

Issue 11975015: This adds a private extension API to use for simple networking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload after another merge Created 7 years, 10 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 | « chrome/test/data/extensions/api_test/networking/test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/shill_service_client.cc
diff --git a/chromeos/dbus/shill_service_client.cc b/chromeos/dbus/shill_service_client.cc
index 16d7767853d78e143b1e170df453e0cc029bf287..8e0ede00f565ea2ecb7d795702c48a3891816029 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(),
« no previous file with comments | « chrome/test/data/extensions/api_test/networking/test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698