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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 #endif | 614 #endif |
615 | 615 |
616 #if defined(GOOGLE_CHROME_BUILD) | 616 #if defined(GOOGLE_CHROME_BUILD) |
617 #if !defined(OS_CHROMEOS) // http://crbug.com/314799 | 617 #if !defined(OS_CHROMEOS) // http://crbug.com/314799 |
618 AddNetworkSpeechSynthesisExtension(); | 618 AddNetworkSpeechSynthesisExtension(); |
619 #endif | 619 #endif |
620 | 620 |
621 #endif // defined(GOOGLE_CHROME_BUILD) | 621 #endif // defined(GOOGLE_CHROME_BUILD) |
622 | 622 |
623 #if defined(ENABLE_PLUGINS) | 623 #if defined(ENABLE_PLUGINS) |
624 base::FilePath pdf_path; | 624 if (switches::OutOfProcessPdfEnabled()) { |
625 content::PluginService* plugin_service = | |
626 content::PluginService::GetInstance(); | |
627 if (switches::OutOfProcessPdfEnabled() && | |
628 PathService::Get(chrome::FILE_PDF_PLUGIN, &pdf_path) && | |
629 plugin_service->GetRegisteredPpapiPluginInfo(pdf_path)) { | |
630 if (switches::PdfMaterialUIEnabled()) | 625 if (switches::PdfMaterialUIEnabled()) |
631 Add(IDR_PDF_MANIFEST_MATERIAL, base::FilePath(FILE_PATH_LITERAL("pdf"))); | 626 Add(IDR_PDF_MANIFEST_MATERIAL, base::FilePath(FILE_PATH_LITERAL("pdf"))); |
632 else | 627 else |
633 Add(IDR_PDF_MANIFEST, base::FilePath(FILE_PATH_LITERAL("pdf"))); | 628 Add(IDR_PDF_MANIFEST, base::FilePath(FILE_PATH_LITERAL("pdf"))); |
634 } | 629 } |
635 #endif | 630 #endif |
636 | 631 |
637 Add(IDR_CRYPTOTOKEN_MANIFEST, | 632 Add(IDR_CRYPTOTOKEN_MANIFEST, |
638 base::FilePath(FILE_PATH_LITERAL("cryptotoken"))); | 633 base::FilePath(FILE_PATH_LITERAL("cryptotoken"))); |
639 } | 634 } |
(...skipping 20 matching lines...) Expand all Loading... |
660 off_the_record_context, Extension::GetBaseURLFromExtensionId(id)); | 655 off_the_record_context, Extension::GetBaseURLFromExtensionId(id)); |
661 storage::FileSystemContext* file_system_context = | 656 storage::FileSystemContext* file_system_context = |
662 content::BrowserContext::GetStoragePartitionForSite( | 657 content::BrowserContext::GetStoragePartitionForSite( |
663 off_the_record_context, site)->GetFileSystemContext(); | 658 off_the_record_context, site)->GetFileSystemContext(); |
664 file_system_context->EnableTemporaryFileSystemInIncognito(); | 659 file_system_context->EnableTemporaryFileSystemInIncognito(); |
665 } | 660 } |
666 #endif | 661 #endif |
667 } | 662 } |
668 | 663 |
669 } // namespace extensions | 664 } // namespace extensions |
OLD | NEW |