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