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

Unified Diff: chrome/browser/chromeos/cros/network_library.cc

Issue 10163016: chromeos: Remove unnecessary c_str() in network_library.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/network_library.cc
diff --git a/chrome/browser/chromeos/cros/network_library.cc b/chrome/browser/chromeos/cros/network_library.cc
index 622d6583e20a8ed5974dccdd85fffa80947fd318..1db8ad8d630144b2ce41b710aca2d14051ef6c74 100644
--- a/chrome/browser/chromeos/cros/network_library.cc
+++ b/chrome/browser/chromeos/cros/network_library.cc
@@ -310,14 +310,14 @@ void Network::SetValueProperty(const char* prop, Value* value) {
DCHECK(value);
if (!EnsureCrosLoaded())
return;
- CrosSetNetworkServiceProperty(service_path_.c_str(), prop, *value);
+ CrosSetNetworkServiceProperty(service_path_, prop, *value);
}
void Network::ClearProperty(const char* prop) {
DCHECK(prop);
if (!EnsureCrosLoaded())
return;
- CrosClearNetworkServiceProperty(service_path_.c_str(), prop);
+ CrosClearNetworkServiceProperty(service_path_, prop);
}
void Network::SetStringProperty(
@@ -485,7 +485,7 @@ void Network::InitIPAddress() {
return;
// If connected, get ip config.
if (connected() && !device_path_.empty()) {
- IPConfigStatus* ipconfig_status = CrosListIPConfigs(device_path_.c_str());
+ IPConfigStatus* ipconfig_status = CrosListIPConfigs(device_path_);
if (ipconfig_status) {
for (int i = 0; i < ipconfig_status->size; ++i) {
IPConfig ipconfig = ipconfig_status->ips[i];
@@ -1011,7 +1011,7 @@ CellularNetwork::~CellularNetwork() {
bool CellularNetwork::StartActivation() {
if (!EnsureCrosLoaded())
return false;
- if (!CrosActivateCellularModem(service_path().c_str(), ""))
+ if (!CrosActivateCellularModem(service_path(), ""))
return false;
// 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
@@ -1024,7 +1024,7 @@ void CellularNetwork::RefreshDataPlansIfNeeded() const {
if (!EnsureCrosLoaded())
return;
if (connected() && activated())
- CrosRequestCellularDataPlanUpdate(service_path().c_str());
+ CrosRequestCellularDataPlanUpdate(service_path());
}
void CellularNetwork::SetApn(const CellularApn& apn) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698