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

Side by Side Diff: chromeos/network/network_sms_handler.cc

Issue 287193004: Use modemmanager::kModemManager1ServiceName DBus service constant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/fake_shill_device_client.cc ('k') | no next file » | 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/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
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
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_shill_device_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698