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

Side by Side Diff: chrome/installer/util/lzma_util.cc

Issue 100573002: Move directory creation functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/installer/util/installer_state_unittest.cc ('k') | chrome/installer/util/lzma_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698