Home | History | Annotate | Download | only in files
      1 // Copyright 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "base/files/scoped_platform_file_closer.h"
      6 
      7 namespace base {
      8 namespace internal {
      9 
     10 void PlatformFileCloser::operator()(PlatformFile* file) const {
     11   if (file && *file != kInvalidPlatformFileValue)
     12     ClosePlatformFile(*file);
     13 }
     14 
     15 }  // namespace internal
     16 }  // namespace base
     17