diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-31 17:29:25 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-31 17:29:25 +0000 |
commit | e83326f8400791e92875546b2fd1885a3a17d1b1 (patch) | |
tree | edbe773208b1a9f6965b45b55da10afd210ea7bb /media/tools/media_bench | |
parent | 8e0a03bf3b1aacaa7a2bc2561d8eb1b83eb9c2e5 (diff) | |
download | chromium_src-e83326f8400791e92875546b2fd1885a3a17d1b1.zip chromium_src-e83326f8400791e92875546b2fd1885a3a17d1b1.tar.gz chromium_src-e83326f8400791e92875546b2fd1885a3a17d1b1.tar.bz2 |
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
Diffstat (limited to 'media/tools/media_bench')
-rw-r--r-- | media/tools/media_bench/media_bench.cc | 12 |
1 files changed, 6 insertions, 6 deletions
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; } } |