chromeos: Remove unnecessary c_str() in network_library.cc

BUG=None
TEST=build success


Review URL: http://codereview.chromium.org/10163016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133628 0039d316-1c4b-4281-b951-d872f2087c98
parent e2533530
...@@ -310,14 +310,14 @@ void Network::SetValueProperty(const char* prop, Value* value) { ...@@ -310,14 +310,14 @@ void Network::SetValueProperty(const char* prop, Value* value) {
DCHECK(value); DCHECK(value);
if (!EnsureCrosLoaded()) if (!EnsureCrosLoaded())
return; return;
CrosSetNetworkServiceProperty(service_path_.c_str(), prop, *value); CrosSetNetworkServiceProperty(service_path_, prop, *value);
} }
void Network::ClearProperty(const char* prop) { void Network::ClearProperty(const char* prop) {
DCHECK(prop); DCHECK(prop);
if (!EnsureCrosLoaded()) if (!EnsureCrosLoaded())
return; return;
CrosClearNetworkServiceProperty(service_path_.c_str(), prop); CrosClearNetworkServiceProperty(service_path_, prop);
} }
void Network::SetStringProperty( void Network::SetStringProperty(
...@@ -485,7 +485,7 @@ void Network::InitIPAddress() { ...@@ -485,7 +485,7 @@ void Network::InitIPAddress() {
return; return;
// If connected, get ip config. // If connected, get ip config.
if (connected() && !device_path_.empty()) { if (connected() && !device_path_.empty()) {
IPConfigStatus* ipconfig_status = CrosListIPConfigs(device_path_.c_str()); IPConfigStatus* ipconfig_status = CrosListIPConfigs(device_path_);
if (ipconfig_status) { if (ipconfig_status) {
for (int i = 0; i < ipconfig_status->size; ++i) { for (int i = 0; i < ipconfig_status->size; ++i) {
IPConfig ipconfig = ipconfig_status->ips[i]; IPConfig ipconfig = ipconfig_status->ips[i];
...@@ -1011,7 +1011,7 @@ CellularNetwork::~CellularNetwork() { ...@@ -1011,7 +1011,7 @@ CellularNetwork::~CellularNetwork() {
bool CellularNetwork::StartActivation() { bool CellularNetwork::StartActivation() {
if (!EnsureCrosLoaded()) if (!EnsureCrosLoaded())
return false; return false;
if (!CrosActivateCellularModem(service_path().c_str(), "")) if (!CrosActivateCellularModem(service_path(), ""))
return false; return false;
// Don't wait for flimflam to tell us that we are really activating since // Don't wait for flimflam to tell us that we are really activating since
// other notifications in the message loop might cause us to think that // other notifications in the message loop might cause us to think that
...@@ -1024,7 +1024,7 @@ void CellularNetwork::RefreshDataPlansIfNeeded() const { ...@@ -1024,7 +1024,7 @@ void CellularNetwork::RefreshDataPlansIfNeeded() const {
if (!EnsureCrosLoaded()) if (!EnsureCrosLoaded())
return; return;
if (connected() && activated()) if (connected() && activated())
CrosRequestCellularDataPlanUpdate(service_path().c_str()); CrosRequestCellularDataPlanUpdate(service_path());
} }
void CellularNetwork::SetApn(const CellularApn& apn) { void CellularNetwork::SetApn(const CellularApn& apn) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment