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 "chrome/browser/chromeos/gdata/gdata_file_system_proxy.h" | 5 #include "chrome/browser/chromeos/gdata/gdata_file_system_proxy.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 base::Bind(callback, | 185 base::Bind(callback, |
186 base::PLATFORM_FILE_ERROR_NOT_FOUND, | 186 base::PLATFORM_FILE_ERROR_NOT_FOUND, |
187 base::PlatformFileInfo(), | 187 base::PlatformFileInfo(), |
188 FilePath(), | 188 FilePath(), |
189 scoped_refptr<webkit_blob::ShareableFileReference>(NULL))); | 189 scoped_refptr<webkit_blob::ShareableFileReference>(NULL))); |
190 return; | 190 return; |
191 } | 191 } |
192 | 192 |
193 | 193 |
194 base::PlatformFileInfo file_info; | 194 base::PlatformFileInfo file_info; |
195 if (!file_system_->GetFileInfoFromPath(file_path, &file_info)) { | 195 if (!file_system_->GetFileInfoFromPath(file_path, |
| 196 &file_info, NULL, NULL, NULL)) { |
196 MessageLoopProxy::current()->PostTask(FROM_HERE, | 197 MessageLoopProxy::current()->PostTask(FROM_HERE, |
197 base::Bind(callback, | 198 base::Bind(callback, |
198 base::PLATFORM_FILE_ERROR_NOT_FOUND, | 199 base::PLATFORM_FILE_ERROR_NOT_FOUND, |
199 base::PlatformFileInfo(), | 200 base::PlatformFileInfo(), |
200 FilePath(), | 201 FilePath(), |
201 scoped_refptr<webkit_blob::ShareableFileReference>(NULL))); | 202 scoped_refptr<webkit_blob::ShareableFileReference>(NULL))); |
202 return; | 203 return; |
203 } | 204 } |
204 | 205 |
205 file_system_->GetFile(file_path, | 206 file_system_->GetFile(file_path, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 } | 272 } |
272 | 273 |
273 proxy->PostTask(FROM_HERE, | 274 proxy->PostTask(FROM_HERE, |
274 base::Bind(callback, | 275 base::Bind(callback, |
275 base::PLATFORM_FILE_OK, | 276 base::PLATFORM_FILE_OK, |
276 entries, | 277 entries, |
277 false)); | 278 false)); |
278 } | 279 } |
279 | 280 |
280 } // namespace gdata | 281 } // namespace gdata |
OLD | NEW |