| 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 328 |
| 329 void ComponentLoader::AddHangoutServicesExtension() { | 329 void ComponentLoader::AddHangoutServicesExtension() { |
| 330 #if defined(GOOGLE_CHROME_BUILD) || defined(ENABLE_HANGOUT_SERVICES_EXTENSION) | 330 #if defined(GOOGLE_CHROME_BUILD) || defined(ENABLE_HANGOUT_SERVICES_EXTENSION) |
| 331 Add(IDR_HANGOUT_SERVICES_MANIFEST, | 331 Add(IDR_HANGOUT_SERVICES_MANIFEST, |
| 332 base::FilePath(FILE_PATH_LITERAL("hangout_services"))); | 332 base::FilePath(FILE_PATH_LITERAL("hangout_services"))); |
| 333 #endif | 333 #endif |
| 334 } | 334 } |
| 335 | 335 |
| 336 void ComponentLoader::AddHotwordAudioVerificationApp() { | 336 void ComponentLoader::AddHotwordAudioVerificationApp() { |
| 337 if (HotwordService::IsExperimentalHotwordingEnabled() && | 337 if (HotwordService::IsExperimentalHotwordingEnabled() && |
| 338 HotwordServiceFactory::IsHotwordHardwareAvailable()) { | 338 HotwordServiceFactory::IsAlwaysOnAvailable()) { |
| 339 Add(IDR_HOTWORD_AUDIO_VERIFICATION_MANIFEST, | 339 Add(IDR_HOTWORD_AUDIO_VERIFICATION_MANIFEST, |
| 340 base::FilePath(FILE_PATH_LITERAL("hotword_audio_verification"))); | 340 base::FilePath(FILE_PATH_LITERAL("hotword_audio_verification"))); |
| 341 } | 341 } |
| 342 } | 342 } |
| 343 | 343 |
| 344 void ComponentLoader::AddHotwordHelperExtension() { | 344 void ComponentLoader::AddHotwordHelperExtension() { |
| 345 if (HotwordServiceFactory::IsHotwordAllowed(browser_context_)) { | 345 if (HotwordServiceFactory::IsHotwordAllowed(browser_context_)) { |
| 346 if (HotwordService::IsExperimentalHotwordingEnabled()) { | 346 if (HotwordService::IsExperimentalHotwordingEnabled()) { |
| 347 Add(IDR_HOTWORD_MANIFEST, | 347 Add(IDR_HOTWORD_MANIFEST, |
| 348 base::FilePath(FILE_PATH_LITERAL("hotword"))); | 348 base::FilePath(FILE_PATH_LITERAL("hotword"))); |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 off_the_record_context, Extension::GetBaseURLFromExtensionId(id)); | 672 off_the_record_context, Extension::GetBaseURLFromExtensionId(id)); |
| 673 storage::FileSystemContext* file_system_context = | 673 storage::FileSystemContext* file_system_context = |
| 674 content::BrowserContext::GetStoragePartitionForSite( | 674 content::BrowserContext::GetStoragePartitionForSite( |
| 675 off_the_record_context, site)->GetFileSystemContext(); | 675 off_the_record_context, site)->GetFileSystemContext(); |
| 676 file_system_context->EnableTemporaryFileSystemInIncognito(); | 676 file_system_context->EnableTemporaryFileSystemInIncognito(); |
| 677 } | 677 } |
| 678 #endif | 678 #endif |
| 679 } | 679 } |
| 680 | 680 |
| 681 } // namespace extensions | 681 } // namespace extensions |
| OLD | NEW |