OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/fileapi/isolated_file_util.h" | 5 #include "webkit/fileapi/isolated_file_util.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "webkit/blob/shareable_file_reference.h" | 10 #include "webkit/blob/shareable_file_reference.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 // The root directory case. | 187 // The root directory case. |
188 std::vector<FileInfo> toplevels; | 188 std::vector<FileInfo> toplevels; |
189 bool success = IsolatedContext::GetInstance()->GetDraggedFileInfo( | 189 bool success = IsolatedContext::GetInstance()->GetDraggedFileInfo( |
190 url.filesystem_id(), &toplevels); | 190 url.filesystem_id(), &toplevels); |
191 DCHECK(success); | 191 DCHECK(success); |
192 return toplevels.empty(); | 192 return toplevels.empty(); |
193 } | 193 } |
194 return NativeFileUtil::IsDirectoryEmpty(url.path()); | 194 return NativeFileUtil::IsDirectoryEmpty(url.path()); |
195 } | 195 } |
196 | 196 |
197 } // namespace | 197 } // namespace fileapi |
OLD | NEW |