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

Side by Side Diff: chromeos/dbus/shill_service_client_stub.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_stub.h ('k') | chromeos/network/cros_network_functions.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_stub.h" 5 #include "chromeos/dbus/shill_service_client_stub.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 void ShillServiceClientStub::ActivateCellularModem( 214 void ShillServiceClientStub::ActivateCellularModem(
215 const dbus::ObjectPath& service_path, 215 const dbus::ObjectPath& service_path,
216 const std::string& carrier, 216 const std::string& carrier,
217 const base::Closure& callback, 217 const base::Closure& callback,
218 const ErrorCallback& error_callback) { 218 const ErrorCallback& error_callback) {
219 if (callback.is_null()) 219 if (callback.is_null())
220 return; 220 return;
221 MessageLoop::current()->PostTask(FROM_HERE, callback); 221 MessageLoop::current()->PostTask(FROM_HERE, callback);
222 } 222 }
223 223
224 void ShillServiceClientStub::CompleteCellularActivation(
225 const dbus::ObjectPath& service_path,
226 const base::Closure& callback,
227 const ErrorCallback& error_callback) {
228 if (callback.is_null())
229 return;
230 MessageLoop::current()->PostTask(FROM_HERE, callback);
231 }
232
224 bool ShillServiceClientStub::CallActivateCellularModemAndBlock( 233 bool ShillServiceClientStub::CallActivateCellularModemAndBlock(
225 const dbus::ObjectPath& service_path, 234 const dbus::ObjectPath& service_path,
226 const std::string& carrier) { 235 const std::string& carrier) {
227 return true; 236 return true;
228 } 237 }
229 238
230 ShillServiceClient::TestInterface* ShillServiceClientStub::GetTestInterface() { 239 ShillServiceClient::TestInterface* ShillServiceClientStub::GetTestInterface() {
231 return this; 240 return this;
232 } 241 }
233 242
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 std::map<dbus::ObjectPath, PropertyObserverList*>::iterator iter = 357 std::map<dbus::ObjectPath, PropertyObserverList*>::iterator iter =
349 observer_list_.find(device_path); 358 observer_list_.find(device_path);
350 if (iter != observer_list_.end()) 359 if (iter != observer_list_.end())
351 return *(iter->second); 360 return *(iter->second);
352 PropertyObserverList* observer_list = new PropertyObserverList(); 361 PropertyObserverList* observer_list = new PropertyObserverList();
353 observer_list_[device_path] = observer_list; 362 observer_list_[device_path] = observer_list;
354 return *observer_list; 363 return *observer_list;
355 } 364 }
356 365
357 } // namespace chromeos 366 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/shill_service_client_stub.h ('k') | chromeos/network/cros_network_functions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698