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

Unified Diff: net/tools/cachetool/cachetool.cc

Issue 1838443002: Provide GN support for cachetool and content_decoder_tool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « net/net.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/cachetool/cachetool.cc
diff --git a/net/tools/cachetool/cachetool.cc b/net/tools/cachetool/cachetool.cc
index 260cdf6b1222d6df3ab310b6bf0b78bb8f8024a7..c186400d9da01ede0fdff9c7b8be77fb6c572fed 100644
--- a/net/tools/cachetool/cachetool.cc
+++ b/net/tools/cachetool/cachetool.cc
@@ -11,7 +11,6 @@
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/strings/string_number_conversions.h"
-#include "base/strings/utf_string_conversions.h"
#include "net/base/io_buffer.h"
#include "net/base/test_completion_callback.h"
#include "net/disk_cache/disk_cache.h"
@@ -132,25 +131,13 @@ int main(int argc, char* argv[]) {
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
-#if defined(OS_WIN)
- std::vector<std::string> args;
- base::CommandLine::StringVector wide_args = command_line.GetArgs();
- for (const auto& arg : wide_args) {
- args.push_back(base::WideToUTF8(arg));
- }
-#else
base::CommandLine::StringVector args = command_line.GetArgs();
-#endif
if (args.size() < 3U) {
PrintHelp();
return 1;
}
-#if defined(OS_WIN)
- base::FilePath cache_path(wide_args[0]);
-#else
base::FilePath cache_path(args[0]);
-#endif
std::string cache_backend_type(args[1]);
std::string subcommand(args[2]);
« no previous file with comments | « net/net.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698