Move prefs::kLastPolicyStatisticsUpdate to the policy component.
[chromium-blink-merge.git] / base / files / scoped_platform_file_closer.cc
blob44f67521b8820e3424f568f063bbeb8988302f0c
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"
7 namespace base {
8 namespace internal {
10 void PlatformFileCloser::operator()(PlatformFile* file) const {
11 if (file && *file != kInvalidPlatformFileValue)
12 ClosePlatformFile(*file);
15 } // namespace internal
16 } // namespace base