diff options
author | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-13 23:41:22 +0000 |
---|---|---|
committer | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-13 23:41:22 +0000 |
commit | 75f1c78e253686c71e4294a48b744375d0fe8560 (patch) | |
tree | 37bcb158f88c33e0e13cb26010ea7b35ae8e118c /chrome/tools/profiles | |
parent | 8e63df81baee6cc66979255525cd900e00977969 (diff) | |
download | chromium_src-75f1c78e253686c71e4294a48b744375d0fe8560.zip chromium_src-75f1c78e253686c71e4294a48b744375d0fe8560.tar.gz chromium_src-75f1c78e253686c71e4294a48b744375d0fe8560.tar.bz2 |
Rename CommandLine::GetArgs(), update callers.
BUG=73195
TEST=none
Review URL: http://codereview.chromium.org/7352006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92448 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/profiles')
-rw-r--r-- | chrome/tools/profiles/generate_profile.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/tools/profiles/generate_profile.cc b/chrome/tools/profiles/generate_profile.cc index f392137..f7a2dce 100644 --- a/chrome/tools/profiles/generate_profile.cc +++ b/chrome/tools/profiles/generate_profile.cc @@ -207,7 +207,8 @@ int main(int argc, const char* argv[]) { types |= FULL_TEXT; // We require two arguments: urlcount and profiledir. - if (cl->args().size() < 2) { + const CommandLine::StringVector& args = cl->GetArgs(); + if (args.size() < 2) { printf("usage: %s [--top-sites] [--full-text] <urlcount> " "<profiledir>\n", argv[0]); printf("\n --top-sites Generate thumbnails\n"); @@ -216,8 +217,8 @@ int main(int argc, const char* argv[]) { } int url_count = 0; - base::StringToInt(WideToUTF8(cl->args()[0]), &url_count); - FilePath dst_dir(cl->args()[1]); + base::StringToInt(WideToUTF8(args[0]), &url_count); + FilePath dst_dir(args[1]); if (!dst_dir.IsAbsolute()) { FilePath current_dir; file_util::GetCurrentDirectory(¤t_dir); |