summaryrefslogtreecommitdiffstats
path: root/chrome/tools/profiles
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-13 23:41:22 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-13 23:41:22 +0000
commit75f1c78e253686c71e4294a48b744375d0fe8560 (patch)
tree37bcb158f88c33e0e13cb26010ea7b35ae8e118c /chrome/tools/profiles
parent8e63df81baee6cc66979255525cd900e00977969 (diff)
downloadchromium_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.cc7
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(&current_dir);