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/extensions/component_loader.h" | 5 #include "chrome/browser/extensions/component_loader.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 AddDefaultComponentExtensionsWithBackgroundPages(skip_session_components); | 490 AddDefaultComponentExtensionsWithBackgroundPages(skip_session_components); |
491 } | 491 } |
492 | 492 |
493 void ComponentLoader::AddDefaultComponentExtensionsForKioskMode( | 493 void ComponentLoader::AddDefaultComponentExtensionsForKioskMode( |
494 bool skip_session_components) { | 494 bool skip_session_components) { |
495 // No component extension for kiosk app launch splash screen. | 495 // No component extension for kiosk app launch splash screen. |
496 if (skip_session_components) | 496 if (skip_session_components) |
497 return; | 497 return; |
498 | 498 |
499 // Component extensions needed for kiosk apps. | 499 // Component extensions needed for kiosk apps. |
500 AddVideoPlayerExtension(); | |
501 AddAudioPlayerExtension(); | |
502 AddFileManagerExtension(); | 500 AddFileManagerExtension(); |
503 AddGalleryExtension(); | |
504 | 501 |
505 // Add virtual keyboard. | 502 // Add virtual keyboard. |
506 AddKeyboardApp(); | 503 AddKeyboardApp(); |
507 } | 504 } |
508 | 505 |
509 void ComponentLoader::AddDefaultComponentExtensionsWithBackgroundPages( | 506 void ComponentLoader::AddDefaultComponentExtensionsWithBackgroundPages( |
510 bool skip_session_components) { | 507 bool skip_session_components) { |
511 const CommandLine* command_line = CommandLine::ForCurrentProcess(); | 508 const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
512 | 509 |
513 // Component extensions with background pages are not enabled during tests | 510 // Component extensions with background pages are not enabled during tests |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 off_the_record_context, Extension::GetBaseURLFromExtensionId(id)); | 656 off_the_record_context, Extension::GetBaseURLFromExtensionId(id)); |
660 storage::FileSystemContext* file_system_context = | 657 storage::FileSystemContext* file_system_context = |
661 content::BrowserContext::GetStoragePartitionForSite( | 658 content::BrowserContext::GetStoragePartitionForSite( |
662 off_the_record_context, site)->GetFileSystemContext(); | 659 off_the_record_context, site)->GetFileSystemContext(); |
663 file_system_context->EnableTemporaryFileSystemInIncognito(); | 660 file_system_context->EnableTemporaryFileSystemInIncognito(); |
664 } | 661 } |
665 #endif | 662 #endif |
666 } | 663 } |
667 | 664 |
668 } // namespace extensions | 665 } // namespace extensions |
OLD | NEW |