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

Unified Diff: remoting/host/service_client.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 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 | « remoting/host/server_log_entry.cc ('k') | remoting/host/setup/daemon_controller_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/service_client.cc
diff --git a/remoting/host/service_client.cc b/remoting/host/service_client.cc
index 6db1c6e516629a526cd82d73c897be7cef5e5407..d487a97a66a882ff55768e48dd44014a3b79a7b8 100644
--- a/remoting/host/service_client.cc
+++ b/remoting/host/service_client.cc
@@ -78,7 +78,10 @@ void ServiceClient::Core::RegisterHost(
post_body.SetString("data.publicKey", public_key);
std::string post_body_str;
base::JSONWriter::Write(&post_body, &post_body_str);
- MakeGaiaRequest(net::URLFetcher::POST, "", post_body_str, oauth_access_token,
+ MakeGaiaRequest(net::URLFetcher::POST,
+ std::string(),
+ post_body_str,
+ oauth_access_token,
delegate);
}
@@ -88,8 +91,11 @@ void ServiceClient::Core::UnregisterHost(
Delegate* delegate) {
DCHECK(pending_request_type_ == PENDING_REQUEST_NONE);
pending_request_type_ = PENDING_REQUEST_UNREGISTER_HOST;
- MakeGaiaRequest(net::URLFetcher::DELETE_REQUEST, host_id, "",
- oauth_access_token, delegate);
+ MakeGaiaRequest(net::URLFetcher::DELETE_REQUEST,
+ host_id,
+ std::string(),
+ oauth_access_token,
+ delegate);
}
void ServiceClient::Core::MakeGaiaRequest(
« no previous file with comments | « remoting/host/server_log_entry.cc ('k') | remoting/host/setup/daemon_controller_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698