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

Unified Diff: mojo/tools/package_manager/unpacker.cc

Issue 705703002: Remove mojo/tools/, not needed in chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove gyp Created 6 years, 1 month 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 | « mojo/tools/package_manager/unpacker.h ('k') | mojo/tools/pylib/mojo_python_tests_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/package_manager/unpacker.cc
diff --git a/mojo/tools/package_manager/unpacker.cc b/mojo/tools/package_manager/unpacker.cc
deleted file mode 100644
index 8ed34d58ab3a867bb581539d65e11986f9e456b8..0000000000000000000000000000000000000000
--- a/mojo/tools/package_manager/unpacker.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/tools/package_manager/unpacker.h"
-
-#include "base/files/file_util.h"
-#include "base/logging.h"
-#include "third_party/zlib/google/zip.h"
-
-namespace mojo {
-
-Unpacker::Unpacker() {
-}
-
-Unpacker::~Unpacker() {
- if (!dir_.empty())
- DeleteFile(dir_, true);
-}
-
-bool Unpacker::Unpack(const base::FilePath& zip_file) {
- DCHECK(zip_file_.empty());
- zip_file_ = zip_file;
-
- DCHECK(dir_.empty());
- if (!CreateNewTempDirectory(base::FilePath::StringType(), &dir_))
- return false;
- if (!zip::Unzip(zip_file, dir_)) {
- dir_ = base::FilePath();
- return false;
- }
- return true;
-}
-
-} // namespace mojo
« no previous file with comments | « mojo/tools/package_manager/unpacker.h ('k') | mojo/tools/pylib/mojo_python_tests_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698