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/extensions/file_manager/file_browser_private_a
pi.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a
pi.h" |
6 | 6 |
7 #include <sys/stat.h> | 7 #include <sys/stat.h> |
8 #include <sys/statvfs.h> | 8 #include <sys/statvfs.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 #include <utime.h> | 10 #include <utime.h> |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) { | 609 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) { |
610 return FileBrowserPrivateAPIFactory::GetForProfile(profile); | 610 return FileBrowserPrivateAPIFactory::GetForProfile(profile); |
611 } | 611 } |
612 | 612 |
613 void RequestLocalFileSystemFunction::RequestOnFileThread( | 613 void RequestLocalFileSystemFunction::RequestOnFileThread( |
614 scoped_refptr<fileapi::FileSystemContext> file_system_context, | 614 scoped_refptr<fileapi::FileSystemContext> file_system_context, |
615 const GURL& source_url, | 615 const GURL& source_url, |
616 int child_id) { | 616 int child_id) { |
617 GURL origin_url = source_url.GetOrigin(); | 617 GURL origin_url = source_url.GetOrigin(); |
618 file_system_context->OpenFileSystem( | 618 file_system_context->OpenFileSystem( |
619 origin_url, fileapi::kFileSystemTypeExternal, false, // create | 619 origin_url, fileapi::kFileSystemTypeExternal, |
| 620 fileapi::OPEN_FILE_SYSTEM_FAIL_IF_NONEXISTENT, |
620 LocalFileSystemCallbackDispatcher::CreateCallback( | 621 LocalFileSystemCallbackDispatcher::CreateCallback( |
621 this, | 622 this, |
622 file_system_context, | 623 file_system_context, |
623 child_id, | 624 child_id, |
624 GetExtension())); | 625 GetExtension())); |
625 } | 626 } |
626 | 627 |
627 bool LogoutUserFunction::RunImpl() { | 628 bool LogoutUserFunction::RunImpl() { |
628 chrome::AttemptUserExit(); | 629 chrome::AttemptUserExit(); |
629 return true; | 630 return true; |
(...skipping 2556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3186 OpenNewWindowFunction::OpenNewWindowFunction() {} | 3187 OpenNewWindowFunction::OpenNewWindowFunction() {} |
3187 | 3188 |
3188 OpenNewWindowFunction::~OpenNewWindowFunction() {} | 3189 OpenNewWindowFunction::~OpenNewWindowFunction() {} |
3189 | 3190 |
3190 bool OpenNewWindowFunction::RunImpl() { | 3191 bool OpenNewWindowFunction::RunImpl() { |
3191 std::string url; | 3192 std::string url; |
3192 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &url)); | 3193 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &url)); |
3193 file_manager_util::OpenNewWindow(profile_, GURL(url)); | 3194 file_manager_util::OpenNewWindow(profile_, GURL(url)); |
3194 return true; | 3195 return true; |
3195 } | 3196 } |
OLD | NEW |