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

Unified Diff: chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc

Issue 7004007: iwyu: Include stringprintf.h where appropriate, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix 2. Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/url_request_slow_download_job.cc ('k') | chrome/browser/process_singleton_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc
diff --git a/chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc b/chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc
index 675f494117db96916f010addd55e1ea9b8c0cada..421d839365561db59ecaefef2218b19ee32328c1 100644
--- a/chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc
+++ b/chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc
@@ -8,8 +8,8 @@
#include "base/compiler_specific.h"
#include "base/message_loop.h"
#include "base/metrics/field_trial.h"
+#include "base/stringprintf.h"
#include "base/task.h"
-#include "base/string_util.h"
#include "chrome/common/chrome_switches.h"
#include "content/browser/browser_thread.h"
#include "net/base/host_resolver.h"
@@ -112,65 +112,65 @@ void WebSocketExperimentRunner::InitConfig() {
config = &config_.ws_config[STATE_RUN_WS - STATE_RUN_WS];
*config = task_config;
config->url =
- GURL(StringPrintf("ws://%s/live_exp", experiment_host.c_str()));
+ GURL(base::StringPrintf("ws://%s/live_exp", experiment_host.c_str()));
config->ws_location =
- StringPrintf("ws://%s/live_exp", experiment_host.c_str());
+ base::StringPrintf("ws://%s/live_exp", experiment_host.c_str());
config->http_url =
- GURL(StringPrintf("http://%s/", experiment_host.c_str()));
+ GURL(base::StringPrintf("http://%s/", experiment_host.c_str()));
config = &config_.ws_config[STATE_RUN_WSS - STATE_RUN_WS];
*config = task_config;
config->url =
- GURL(StringPrintf("wss://%s/live_exp", experiment_host.c_str()));
+ GURL(base::StringPrintf("wss://%s/live_exp", experiment_host.c_str()));
config->ws_location =
- StringPrintf("wss://%s/live_exp", experiment_host.c_str());
+ base::StringPrintf("wss://%s/live_exp", experiment_host.c_str());
config->http_url =
- GURL(StringPrintf("https://%s/", experiment_host.c_str()));
+ GURL(base::StringPrintf("https://%s/", experiment_host.c_str()));
config = &config_.ws_config[STATE_RUN_WS_NODEFAULT_PORT -
STATE_RUN_WS];
*config = task_config;
config->url =
- GURL(StringPrintf("ws://%s:%d/live_exp",
- experiment_host.c_str(), kAlternativePort));
+ GURL(base::StringPrintf("ws://%s:%d/live_exp",
+ experiment_host.c_str(), kAlternativePort));
config->ws_location =
- StringPrintf("ws://%s:%d/live_exp",
- experiment_host.c_str(), kAlternativePort);
+ base::StringPrintf("ws://%s:%d/live_exp",
+ experiment_host.c_str(), kAlternativePort);
config->http_url =
- GURL(StringPrintf("http://%s:%d/",
- experiment_host.c_str(), kAlternativePort));
+ GURL(base::StringPrintf("http://%s:%d/",
+ experiment_host.c_str(), kAlternativePort));
task_config.protocol_version = net::WebSocket::DRAFT75;
config = &config_.ws_config[STATE_RUN_WS_DRAFT75 - STATE_RUN_WS];
*config = task_config;
config->url =
- GURL(StringPrintf("ws://%s/live_exp", experiment_host.c_str()));
+ GURL(base::StringPrintf("ws://%s/live_exp", experiment_host.c_str()));
config->ws_location =
- StringPrintf("ws://%s/live_exp", experiment_host.c_str());
+ base::StringPrintf("ws://%s/live_exp", experiment_host.c_str());
config->http_url =
- GURL(StringPrintf("http://%s/", experiment_host.c_str()));
+ GURL(base::StringPrintf("http://%s/", experiment_host.c_str()));
config = &config_.ws_config[STATE_RUN_WSS_DRAFT75 - STATE_RUN_WS];
*config = task_config;
config->url =
- GURL(StringPrintf("wss://%s/live_exp", experiment_host.c_str()));
+ GURL(base::StringPrintf("wss://%s/live_exp", experiment_host.c_str()));
config->ws_location =
- StringPrintf("wss://%s/live_exp", experiment_host.c_str());
+ base::StringPrintf("wss://%s/live_exp", experiment_host.c_str());
config->http_url =
- GURL(StringPrintf("https://%s/", experiment_host.c_str()));
+ GURL(base::StringPrintf("https://%s/", experiment_host.c_str()));
config = &config_.ws_config[STATE_RUN_WS_NODEFAULT_PORT_DRAFT75 -
STATE_RUN_WS];
*config = task_config;
config->url =
- GURL(StringPrintf("ws://%s:%d/live_exp",
- experiment_host.c_str(), kAlternativePort));
+ GURL(base::StringPrintf("ws://%s:%d/live_exp",
+ experiment_host.c_str(), kAlternativePort));
config->ws_location =
- StringPrintf("ws://%s:%d/live_exp",
- experiment_host.c_str(), kAlternativePort);
+ base::StringPrintf("ws://%s:%d/live_exp",
+ experiment_host.c_str(), kAlternativePort);
config->http_url =
- GURL(StringPrintf("http://%s:%d/",
- experiment_host.c_str(), kAlternativePort));
+ GURL(base::StringPrintf("http://%s:%d/",
+ experiment_host.c_str(), kAlternativePort));
}
« no previous file with comments | « chrome/browser/net/url_request_slow_download_job.cc ('k') | chrome/browser/process_singleton_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698