Fixed last bookmark button hiding behavior.
[chromium-blink-merge.git] / base / platform_file.cc
blobaa113d3b14d6dd2c1787f326732264a04f566d46
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
3 // found in the LICENSE file.
5 #include "base/platform_file.h"
7 namespace base {
9 PlatformFileInfo::PlatformFileInfo()
10 : size(0),
11 is_directory(false),
12 is_symbolic_link(false) {
15 PlatformFileInfo::~PlatformFileInfo() {}
17 PlatformFile CreatePlatformFile(const FilePath& name,
18 int flags,
19 bool* created,
20 PlatformFileError* error) {
21 if (name.ReferencesParent()) {
22 if (error)
23 *error = PLATFORM_FILE_ERROR_ACCESS_DENIED;
24 return kInvalidPlatformFileValue;
26 return CreatePlatformFileUnsafe(name, flags, created, error);
29 } // namespace base