From e83326f8400791e92875546b2fd1885a3a17d1b1 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Sat, 31 Jul 2010 17:29:25 +0000 Subject: Convert more callers of the integer/string functions to using string_number_conversions.h TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/3013046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54454 0039d316-1c4b-4281-b951-d872f2087c98 --- media/tools/media_bench/media_bench.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'media/tools/media_bench') diff --git a/media/tools/media_bench/media_bench.cc b/media/tools/media_bench/media_bench.cc index dae6921..51af940 100644 --- a/media/tools/media_bench/media_bench.cc +++ b/media/tools/media_bench/media_bench.cc @@ -25,7 +25,7 @@ #include "base/file_path.h" #include "base/file_util.h" #include "base/md5.h" -#include "base/string_util.h" +#include "base/string_number_conversions.h" #include "base/time.h" #include "base/utf_string_conversions.h" #include "media/base/djb2.h" @@ -150,7 +150,7 @@ int main(int argc, const char** argv) { int video_threads = 0; std::string threads(cmd_line->GetSwitchValueASCII(switches::kVideoThreads)); if (!threads.empty() && - !StringToInt(threads, &video_threads)) { + !base::StringToInt(threads, &video_threads)) { video_threads = 0; } @@ -158,7 +158,7 @@ int main(int argc, const char** argv) { int verbose_level = AV_LOG_FATAL; std::string verbose(cmd_line->GetSwitchValueASCII(switches::kVerbose)); if (!verbose.empty() && - !StringToInt(verbose, &verbose_level)) { + !base::StringToInt(verbose, &verbose_level)) { verbose_level = AV_LOG_FATAL; } @@ -166,7 +166,7 @@ int main(int argc, const char** argv) { int max_frames = 0; std::string frames_opt(cmd_line->GetSwitchValueASCII(switches::kFrames)); if (!frames_opt.empty() && - !StringToInt(frames_opt, &max_frames)) { + !base::StringToInt(frames_opt, &max_frames)) { max_frames = 0; } @@ -174,7 +174,7 @@ int main(int argc, const char** argv) { int max_loops = 0; std::string loop_opt(cmd_line->GetSwitchValueASCII(switches::kLoop)); if (!loop_opt.empty() && - !StringToInt(loop_opt, &max_loops)) { + !base::StringToInt(loop_opt, &max_loops)) { max_loops = 0; } @@ -209,7 +209,7 @@ int main(int argc, const char** argv) { int skip = 0; if (cmd_line->HasSwitch(switches::kSkip)) { std::string skip_opt(cmd_line->GetSwitchValueASCII(switches::kSkip)); - if (!StringToInt(skip_opt, &skip)) { + if (!base::StringToInt(skip_opt, &skip)) { skip = 0; } } -- cgit v1.1