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 <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 } | 289 } |
290 | 290 |
291 void ComponentLoader::AddVideoPlayerExtension() { | 291 void ComponentLoader::AddVideoPlayerExtension() { |
292 #if defined(OS_CHROMEOS) | 292 #if defined(OS_CHROMEOS) |
293 Add(IDR_VIDEO_PLAYER_MANIFEST, | 293 Add(IDR_VIDEO_PLAYER_MANIFEST, |
294 base::FilePath(FILE_PATH_LITERAL("video_player"))); | 294 base::FilePath(FILE_PATH_LITERAL("video_player"))); |
295 #endif // defined(OS_CHROMEOS) | 295 #endif // defined(OS_CHROMEOS) |
296 } | 296 } |
297 | 297 |
298 void ComponentLoader::AddGalleryExtension() { | 298 void ComponentLoader::AddGalleryExtension() { |
299 // TODO(hirono): Disable the new experimental gallery in M36 temporarily. | 299 #if defined(OS_CHROMEOS) |
| 300 Add(IDR_GALLERY_MANIFEST, base::FilePath(FILE_PATH_LITERAL("gallery"))); |
| 301 #endif |
300 } | 302 } |
301 | 303 |
302 void ComponentLoader::AddHangoutServicesExtension() { | 304 void ComponentLoader::AddHangoutServicesExtension() { |
303 #if defined(GOOGLE_CHROME_BUILD) || defined(ENABLE_HANGOUT_SERVICES_EXTENSION) | 305 #if defined(GOOGLE_CHROME_BUILD) || defined(ENABLE_HANGOUT_SERVICES_EXTENSION) |
304 Add(IDR_HANGOUT_SERVICES_MANIFEST, | 306 Add(IDR_HANGOUT_SERVICES_MANIFEST, |
305 base::FilePath(FILE_PATH_LITERAL("hangout_services"))); | 307 base::FilePath(FILE_PATH_LITERAL("hangout_services"))); |
306 #endif | 308 #endif |
307 } | 309 } |
308 | 310 |
309 void ComponentLoader::AddHotwordHelperExtension() { | 311 void ComponentLoader::AddHotwordHelperExtension() { |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 off_the_record_context, Extension::GetBaseURLFromExtensionId(id)); | 626 off_the_record_context, Extension::GetBaseURLFromExtensionId(id)); |
625 fileapi::FileSystemContext* file_system_context = | 627 fileapi::FileSystemContext* file_system_context = |
626 content::BrowserContext::GetStoragePartitionForSite( | 628 content::BrowserContext::GetStoragePartitionForSite( |
627 off_the_record_context, site)->GetFileSystemContext(); | 629 off_the_record_context, site)->GetFileSystemContext(); |
628 file_system_context->EnableTemporaryFileSystemInIncognito(); | 630 file_system_context->EnableTemporaryFileSystemInIncognito(); |
629 } | 631 } |
630 #endif | 632 #endif |
631 } | 633 } |
632 | 634 |
633 } // namespace extensions | 635 } // namespace extensions |
OLD | NEW |