OLD | NEW |
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/network/network_sms_handler.h" | 5 #include "chromeos/network/network_sms_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 return; | 464 return; |
465 } | 465 } |
466 | 466 |
467 std::string object_path_string; | 467 std::string object_path_string; |
468 if (!properties.GetStringWithoutPathExpansion( | 468 if (!properties.GetStringWithoutPathExpansion( |
469 shill::kDBusObjectProperty, &object_path_string)) { | 469 shill::kDBusObjectProperty, &object_path_string)) { |
470 LOG(ERROR) << "Device has no DBusObject Property: " << device_path; | 470 LOG(ERROR) << "Device has no DBusObject Property: " << device_path; |
471 return; | 471 return; |
472 } | 472 } |
473 dbus::ObjectPath object_path(object_path_string); | 473 dbus::ObjectPath object_path(object_path_string); |
474 if (service_name == modemmanager::kModemManager1) { | 474 if (service_name == modemmanager::kModemManager1ServiceName) { |
475 device_handlers_.push_back( | 475 device_handlers_.push_back( |
476 new ModemManager1NetworkSmsDeviceHandler( | 476 new ModemManager1NetworkSmsDeviceHandler( |
477 this, service_name, object_path)); | 477 this, service_name, object_path)); |
478 } else { | 478 } else { |
479 device_handlers_.push_back( | 479 device_handlers_.push_back( |
480 new ModemManagerNetworkSmsDeviceHandler( | 480 new ModemManagerNetworkSmsDeviceHandler( |
481 this, service_name, object_path)); | 481 this, service_name, object_path)); |
482 } | 482 } |
483 } | 483 } |
484 | 484 |
485 } // namespace chromeos | 485 } // namespace chromeos |
OLD | NEW |