| 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/files/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 |
| 11 extern "C" { | 11 extern "C" { |
| 12 #include "third_party/lzma_sdk/7z.h" | 12 #include "third_party/lzma_sdk/7z.h" |
| 13 #include "third_party/lzma_sdk/7zAlloc.h" | 13 #include "third_party/lzma_sdk/7zAlloc.h" |
| 14 #include "third_party/lzma_sdk/7zCrc.h" | 14 #include "third_party/lzma_sdk/7zCrc.h" |
| 15 #include "third_party/lzma_sdk/7zFile.h" | 15 #include "third_party/lzma_sdk/7zFile.h" |
| 16 } | 16 } |
| 17 | 17 |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 = base::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 |