OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/installer/util/lzma_util.h" | 5 #include "chrome/installer/util/lzma_util.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 | 10 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 void LzmaUtil::CloseArchive() { | 235 void LzmaUtil::CloseArchive() { |
236 if (archive_handle_) { | 236 if (archive_handle_) { |
237 CloseHandle(archive_handle_); | 237 CloseHandle(archive_handle_); |
238 archive_handle_ = NULL; | 238 archive_handle_ = NULL; |
239 } | 239 } |
240 } | 240 } |
241 | 241 |
242 bool LzmaUtil::CreateDirectory(const base::FilePath& dir) { | 242 bool LzmaUtil::CreateDirectory(const base::FilePath& dir) { |
243 bool ret = true; | 243 bool ret = true; |
244 if (directories_created_.find(dir.value()) == directories_created_.end()) { | 244 if (directories_created_.find(dir.value()) == directories_created_.end()) { |
245 ret = file_util::CreateDirectory(dir); | 245 ret = base::CreateDirectory(dir); |
246 if (ret) | 246 if (ret) |
247 directories_created_.insert(dir.value()); | 247 directories_created_.insert(dir.value()); |
248 } | 248 } |
249 return ret; | 249 return ret; |
250 } | 250 } |
OLD | NEW |