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

Unified Diff: chrome/tools/profiles/generate_profile.cc

Issue 7352006: Rename CommandLine::GetArgs(), update callers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename CommandLine::GetArgs(), update callers. Created 9 years, 5 months 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 | « chrome/browser/ui/browser_init.cc ('k') | courgette/courgette_tool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/profiles/generate_profile.cc
diff --git a/chrome/tools/profiles/generate_profile.cc b/chrome/tools/profiles/generate_profile.cc
index f392137c325d6746a22cd4ed100246e6d8794c08..f7a2dce88070f1980b647eaf609e73306aaf8c9a 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);
« no previous file with comments | « chrome/browser/ui/browser_init.cc ('k') | courgette/courgette_tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698