aboutsummaryrefslogtreecommitdiff
path: root/list_proxies.cc
diff options
context:
space:
mode:
authorAlex Vakulenko <avakulenko@chromium.org>2015-04-02 14:31:10 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-04-03 18:33:17 +0000
commitcec973197e7b48b09c306b31d9ff080b8ec4065f (patch)
tree4f5a5dccc824453f5909dea65120f023852c3f32 /list_proxies.cc
parentb578af8ffa62c640f5040ca66b146d5b40092538 (diff)
downloadcrash_reporter-cec973197e7b48b09c306b31d9ff080b8ec4065f.tar.gz
platform2: Explicitly use base:: namespace with CommandLine
The current revision of libchrome is removing CommandLine class from global namespace and only retain the one in base::. Sweep the code to use the correct namespace in anticpation of libchrome revision roll. BUG=None TEST=./build_packages Change-Id: Ib7ca448dac1204c1e36ab053e775a5a5214997ac Reviewed-on: https://chromium-review.googlesource.com/263785 Trybot-Ready: Alex Vakulenko <avakulenko@chromium.org> Tested-by: Alex Vakulenko <avakulenko@chromium.org> Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
Diffstat (limited to 'list_proxies.cc')
-rw-r--r--list_proxies.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/list_proxies.cc b/list_proxies.cc
index de02f0a..de6ef0a 100644
--- a/list_proxies.cc
+++ b/list_proxies.cc
@@ -245,8 +245,8 @@ static bool ShowBrowserProxies(std::string url, base::TimeDelta timeout) {
} // namespace
int main(int argc, char *argv[]) {
- CommandLine::Init(argc, argv);
- CommandLine* cl = CommandLine::ForCurrentProcess();
+ base::CommandLine::Init(argc, argv);
+ base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
if (cl->HasSwitch(kHelp)) {
LOG(INFO) << kHelpMessage;
@@ -273,7 +273,7 @@ int main(int argc, char *argv[]) {
chromeos::InitLog(init_flags);
std::string url;
- CommandLine::StringVector urls = cl->GetArgs();
+ base::CommandLine::StringVector urls = cl->GetArgs();
if (!urls.empty()) {
url = urls[0];
LOG(INFO) << "Resolving proxies for URL: " << url;