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.
5 #include "base/files/scoped_platform_file_closer.h"
10 void PlatformFileCloser::operator()(PlatformFile
* file
) const {
11 if (file
&& *file
!= kInvalidPlatformFileValue
)
12 ClosePlatformFile(*file
);
15 } // namespace internal