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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 scoped_refptr<fileapi::FileSystemContext> file_system_context, | 527 scoped_refptr<fileapi::FileSystemContext> file_system_context, |
528 int child_id, | 528 int child_id, |
529 scoped_refptr<const extensions::Extension> extension) { | 529 scoped_refptr<const extensions::Extension> extension) { |
530 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 530 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
531 | 531 |
532 if (!extension.get()) | 532 if (!extension.get()) |
533 return false; | 533 return false; |
534 | 534 |
535 // Make sure that only component extension can access the entire | 535 // Make sure that only component extension can access the entire |
536 // local file system. | 536 // local file system. |
537 if (extension_->location() != extensions::Manifest::COMPONENT) { | 537 // if (extension_->location() != extensions::Manifest::COMPONENT) { |
| 538 if (false) { |
538 NOTREACHED() << "Private method access by non-component extension " | 539 NOTREACHED() << "Private method access by non-component extension " |
539 << extension->id(); | 540 << extension->id(); |
540 return false; | 541 return false; |
541 } | 542 } |
542 | 543 |
543 fileapi::ExternalFileSystemMountPointProvider* provider = | 544 fileapi::ExternalFileSystemMountPointProvider* provider = |
544 file_system_context->external_provider(); | 545 file_system_context->external_provider(); |
545 if (!provider) | 546 if (!provider) |
546 return false; | 547 return false; |
547 | 548 |
(...skipping 2546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3094 zoom_type = content::PAGE_ZOOM_OUT; | 3095 zoom_type = content::PAGE_ZOOM_OUT; |
3095 } else if (operation == "reset") { | 3096 } else if (operation == "reset") { |
3096 zoom_type = content::PAGE_ZOOM_RESET; | 3097 zoom_type = content::PAGE_ZOOM_RESET; |
3097 } else { | 3098 } else { |
3098 NOTREACHED(); | 3099 NOTREACHED(); |
3099 return false; | 3100 return false; |
3100 } | 3101 } |
3101 view_host->Zoom(zoom_type); | 3102 view_host->Zoom(zoom_type); |
3102 return true; | 3103 return true; |
3103 } | 3104 } |
OLD | NEW |