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

Unified Diff: remoting/host/register_support_host_request.cc

Issue 2779893005: Continue to clean c_str() calls. (Closed)
Patch Set: Revert changes in font_service_app.cc Created 3 years, 9 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 | « remoting/client/jni/jni_client.cc ('k') | remoting/protocol/jingle_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/register_support_host_request.cc
diff --git a/remoting/host/register_support_host_request.cc b/remoting/host/register_support_host_request.cc
index ef25c4a965d2cb34ceae514cdfb328554053b5ea..786c3119829c84bdbc42194cc281535e523cef67 100644
--- a/remoting/host/register_support_host_request.cc
+++ b/remoting/host/register_support_host_request.cc
@@ -167,7 +167,7 @@ void RegisterSupportHostRequest::ParseResponse(const XmlElement* response,
}
int lifetime_int;
- if (!base::StringToInt(lifetime_element->BodyText().c_str(), &lifetime_int) ||
+ if (!base::StringToInt(lifetime_element->BodyText(), &lifetime_int) ||
lifetime_int <= 0) {
error << "<" << kSupportIdLifetimeTag
<< "> is malformed in the host registration response: "
« no previous file with comments | « remoting/client/jni/jni_client.cc ('k') | remoting/protocol/jingle_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698