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

Unified Diff: mojo/examples/wget/wget.cc

Issue 657393003: Make ApplicationImpl::args() be a std::vector<std::string> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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
Index: mojo/examples/wget/wget.cc
diff --git a/mojo/examples/wget/wget.cc b/mojo/examples/wget/wget.cc
index 09c4f7be8849f620fd494f247ace47a8f39cb2c5..1efaa2d71ff85db5209f0d156f50c565f54d11fa 100644
--- a/mojo/examples/wget/wget.cc
+++ b/mojo/examples/wget/wget.cc
@@ -76,8 +76,8 @@ class WGetApp : public ApplicationDelegate {
}
private:
- void Start(const Array<String>& args) {
- std::string url((args.size() > 1) ? args[1].get() : PromptForURL());
+ void Start(const std::vector<std::string>& args) {
+ std::string url((args.size() > 1) ? args[1] : PromptForURL());
printf("Loading: %s\n", url.c_str());
network_service_->CreateURLLoader(GetProxy(&url_loader_));

Powered by Google App Engine
This is Rietveld 408576698