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

Unified Diff: media/cast/test/simulator.cc

Issue 819203002: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « media/cast/test/sender.cc ('k') | media/cast/test/utility/input_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/simulator.cc
diff --git a/media/cast/test/simulator.cc b/media/cast/test/simulator.cc
index 10b56d15ea70cda6ca896c60df8c7f83977b7ffc..d63f6e528a199f0c36b81c9336bfb90e9ccf1bcd 100644
--- a/media/cast/test/simulator.cc
+++ b/media/cast/test/simulator.cc
@@ -100,7 +100,7 @@ const char kYuvOutputPath[] = "yuv-output";
int GetIntegerSwitchValue(const char* switch_name, int default_value) {
const std::string as_str =
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(switch_name);
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(switch_name);
if (as_str.empty())
return default_value;
int as_int;
@@ -692,7 +692,7 @@ bool IsModelValid(const NetworkSimulationModel& model) {
}
NetworkSimulationModel LoadModel(const base::FilePath& model_path) {
- if (CommandLine::ForCurrentProcess()->HasSwitch(kNoSimulation)) {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(kNoSimulation)) {
NetworkSimulationModel model;
model.set_type(media::cast::proto::NO_SIMULATION);
return model;
@@ -726,10 +726,10 @@ NetworkSimulationModel LoadModel(const base::FilePath& model_path) {
int main(int argc, char** argv) {
base::AtExitManager at_exit;
- CommandLine::Init(argc, argv);
+ base::CommandLine::Init(argc, argv);
InitLogging(logging::LoggingSettings());
- const CommandLine* cmd = CommandLine::ForCurrentProcess();
+ const base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
base::FilePath media_path = cmd->GetSwitchValuePath(media::cast::kLibDir);
if (media_path.empty()) {
if (!PathService::Get(base::DIR_MODULE, &media_path)) {
« no previous file with comments | « media/cast/test/sender.cc ('k') | media/cast/test/utility/input_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698