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

Side by Side Diff: chromeos/dbus/shill_service_client.cc

Issue 12279012: Change the modem reset command on cellular activation completion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/shill_service_client.h ('k') | chromeos/dbus/shill_service_client_stub.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/dbus/shill_service_client.h" 5 #include "chromeos/dbus/shill_service_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/chromeos/chromeos_version.h" 8 #include "base/chromeos/chromeos_version.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 const ErrorCallback& error_callback) OVERRIDE { 152 const ErrorCallback& error_callback) OVERRIDE {
153 dbus::MethodCall method_call(flimflam::kFlimflamServiceInterface, 153 dbus::MethodCall method_call(flimflam::kFlimflamServiceInterface,
154 flimflam::kActivateCellularModemFunction); 154 flimflam::kActivateCellularModemFunction);
155 dbus::MessageWriter writer(&method_call); 155 dbus::MessageWriter writer(&method_call);
156 writer.AppendString(carrier); 156 writer.AppendString(carrier);
157 GetHelper(service_path)->CallVoidMethodWithErrorCallback(&method_call, 157 GetHelper(service_path)->CallVoidMethodWithErrorCallback(&method_call,
158 callback, 158 callback,
159 error_callback); 159 error_callback);
160 } 160 }
161 161
162 virtual void CompleteCellularActivation(
163 const dbus::ObjectPath& service_path,
164 const base::Closure& callback,
165 const ErrorCallback& error_callback) OVERRIDE {
166 dbus::MethodCall method_call(flimflam::kFlimflamServiceInterface,
167 shill::kCompleteCellularActivationFunction);
168 dbus::MessageWriter writer(&method_call);
169 GetHelper(service_path)->CallVoidMethodWithErrorCallback(&method_call,
170 callback,
171 error_callback);
172 }
173
162 virtual bool CallActivateCellularModemAndBlock( 174 virtual bool CallActivateCellularModemAndBlock(
163 const dbus::ObjectPath& service_path, 175 const dbus::ObjectPath& service_path,
164 const std::string& carrier) OVERRIDE { 176 const std::string& carrier) OVERRIDE {
165 dbus::MethodCall method_call(flimflam::kFlimflamServiceInterface, 177 dbus::MethodCall method_call(flimflam::kFlimflamServiceInterface,
166 flimflam::kActivateCellularModemFunction); 178 flimflam::kActivateCellularModemFunction);
167 dbus::MessageWriter writer(&method_call); 179 dbus::MessageWriter writer(&method_call);
168 writer.AppendString(carrier); 180 writer.AppendString(carrier);
169 return GetHelper(service_path)->CallVoidMethodAndBlock(&method_call); 181 return GetHelper(service_path)->CallVoidMethodAndBlock(&method_call);
170 } 182 }
171 183
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 ShillServiceClient* ShillServiceClient::Create( 220 ShillServiceClient* ShillServiceClient::Create(
209 DBusClientImplementationType type, 221 DBusClientImplementationType type,
210 dbus::Bus* bus) { 222 dbus::Bus* bus) {
211 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) 223 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION)
212 return new ShillServiceClientImpl(bus); 224 return new ShillServiceClientImpl(bus);
213 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); 225 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type);
214 return new ShillServiceClientStub(); 226 return new ShillServiceClientStub();
215 } 227 }
216 228
217 } // namespace chromeos 229 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/shill_service_client.h ('k') | chromeos/dbus/shill_service_client_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698