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

Unified Diff: chromeos/dbus/flimflam_service_client.cc

Issue 10134028: Reimplement ActivateCellularModem without Libcros (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
Index: chromeos/dbus/flimflam_service_client.cc
diff --git a/chromeos/dbus/flimflam_service_client.cc b/chromeos/dbus/flimflam_service_client.cc
index 40ff77e8a6f59c0e3dc96abb6dfbe635d5a46281..1600d9236b8e2d7b86c34de7d0e454c6c9f5b3bb 100644
--- a/chromeos/dbus/flimflam_service_client.cc
+++ b/chromeos/dbus/flimflam_service_client.cc
@@ -106,6 +106,17 @@ class FlimflamServiceClientImpl : public FlimflamServiceClient {
GetHelper(service_path)->CallVoidMethod(&method_call, callback);
}
+ // FlimflamServiceClient override.
+ virtual bool CallActivateCellularModemAndBlock(
+ const dbus::ObjectPath& service_path,
+ const std::string& carrier) OVERRIDE {
+ dbus::MethodCall method_call(flimflam::kFlimflamServiceInterface,
+ flimflam::kActivateCellularModemFunction);
+ dbus::MessageWriter writer(&method_call);
+ writer.AppendString(carrier);
+ return GetHelper(service_path)->CallVoidMethodAndBlock(&method_call);
+ }
+
private:
typedef std::map<std::string, FlimflamClientHelper*> HelperMap;
@@ -197,6 +208,13 @@ class FlimflamServiceClientStubImpl : public FlimflamServiceClient {
PostSuccessVoidCallback(callback);
}
+ // FlimflamServiceClient override.
+ virtual bool CallActivateCellularModemAndBlock(
+ const dbus::ObjectPath& service_path,
+ const std::string& carrier) OVERRIDE {
+ return true;
+ }
+
private:
void PassEmptyDictionaryValue(const DictionaryValueCallback& callback) const {
base::DictionaryValue dictionary;

Powered by Google App Engine
This is Rietveld 408576698