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

Side by Side Diff: base/file_util.cc

Issue 8368009: Replace most LOG statements with DLOG statements in base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/file_util.h ('k') | base/file_util_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/file_util.h" 5 #include "base/file_util.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <io.h> 8 #include <io.h>
9 #endif 9 #endif
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 bool MemoryMappedFile::IsValid() const { 335 bool MemoryMappedFile::IsValid() const {
336 return data_ != NULL; 336 return data_ != NULL;
337 } 337 }
338 338
339 bool MemoryMappedFile::MapFileToMemory(const FilePath& file_name) { 339 bool MemoryMappedFile::MapFileToMemory(const FilePath& file_name) {
340 file_ = base::CreatePlatformFile( 340 file_ = base::CreatePlatformFile(
341 file_name, base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ, 341 file_name, base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ,
342 NULL, NULL); 342 NULL, NULL);
343 343
344 if (file_ == base::kInvalidPlatformFileValue) { 344 if (file_ == base::kInvalidPlatformFileValue) {
345 LOG(ERROR) << "Couldn't open " << file_name.value(); 345 DLOG(ERROR) << "Couldn't open " << file_name.value();
346 return false; 346 return false;
347 } 347 }
348 348
349 return MapFileToMemoryInternal(); 349 return MapFileToMemoryInternal();
350 } 350 }
351 351
352 // Deprecated functions ---------------------------------------------------- 352 // Deprecated functions ----------------------------------------------------
353 353
354 #if defined(OS_WIN) 354 #if defined(OS_WIN)
355 void AppendToPath(std::wstring* path, const std::wstring& new_ending) { 355 void AppendToPath(std::wstring* path, const std::wstring& new_ending) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 // FileEnumerator 393 // FileEnumerator
394 // 394 //
395 // Note: the main logic is in file_util_<platform>.cc 395 // Note: the main logic is in file_util_<platform>.cc
396 396
397 bool FileEnumerator::ShouldSkip(const FilePath& path) { 397 bool FileEnumerator::ShouldSkip(const FilePath& path) {
398 FilePath::StringType basename = path.BaseName().value(); 398 FilePath::StringType basename = path.BaseName().value();
399 return IsDot(path) || (IsDotDot(path) && !(INCLUDE_DOT_DOT & file_type_)); 399 return IsDot(path) || (IsDotDot(path) && !(INCLUDE_DOT_DOT & file_type_));
400 } 400 }
401 401
402 } // namespace 402 } // namespace
OLDNEW
« no previous file with comments | « base/file_util.h ('k') | base/file_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698