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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 #endif // defined(GOOGLE_CHROME_BUILD) | 491 #endif // defined(GOOGLE_CHROME_BUILD) |
492 if (install_feedback) | 492 if (install_feedback) |
493 Add(IDR_FEEDBACK_MANIFEST, base::FilePath(FILE_PATH_LITERAL("feedback"))); | 493 Add(IDR_FEEDBACK_MANIFEST, base::FilePath(FILE_PATH_LITERAL("feedback"))); |
494 | 494 |
495 #if defined(OS_CHROMEOS) | 495 #if defined(OS_CHROMEOS) |
496 if (!skip_session_components) { | 496 if (!skip_session_components) { |
497 #if defined(GOOGLE_CHROME_BUILD) | 497 #if defined(GOOGLE_CHROME_BUILD) |
498 if (!command_line->HasSwitch( | 498 if (!command_line->HasSwitch( |
499 chromeos::switches::kDisableQuickofficeComponentApp)) { | 499 chromeos::switches::kDisableQuickofficeComponentApp)) { |
500 std::string id = Add(IDR_QUICKOFFICE_MANIFEST, base::FilePath( | 500 std::string id = Add(IDR_QUICKOFFICE_MANIFEST, base::FilePath( |
501 FILE_PATH_LITERAL("/usr/share/chromeos-assets/quick_office"))); | 501 FILE_PATH_LITERAL("/usr/share/chromeos-assets/quickoffice"))); |
502 EnableFileSystemInGuestMode(id); | 502 EnableFileSystemInGuestMode(id); |
503 } | 503 } |
504 #endif // defined(GOOGLE_CHROME_BUILD) | 504 #endif // defined(GOOGLE_CHROME_BUILD) |
505 | 505 |
506 base::FilePath echo_extension_path(FILE_PATH_LITERAL( | 506 base::FilePath echo_extension_path(FILE_PATH_LITERAL( |
507 "/usr/share/chromeos-assets/echo")); | 507 "/usr/share/chromeos-assets/echo")); |
508 if (command_line->HasSwitch(chromeos::switches::kEchoExtensionPath)) { | 508 if (command_line->HasSwitch(chromeos::switches::kEchoExtensionPath)) { |
509 echo_extension_path = command_line->GetSwitchValuePath( | 509 echo_extension_path = command_line->GetSwitchValuePath( |
510 chromeos::switches::kEchoExtensionPath); | 510 chromeos::switches::kEchoExtensionPath); |
511 } | 511 } |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 off_the_record_context, Extension::GetBaseURLFromExtensionId(id)); | 613 off_the_record_context, Extension::GetBaseURLFromExtensionId(id)); |
614 fileapi::FileSystemContext* file_system_context = | 614 fileapi::FileSystemContext* file_system_context = |
615 content::BrowserContext::GetStoragePartitionForSite( | 615 content::BrowserContext::GetStoragePartitionForSite( |
616 off_the_record_context, site)->GetFileSystemContext(); | 616 off_the_record_context, site)->GetFileSystemContext(); |
617 file_system_context->EnableTemporaryFileSystemInIncognito(); | 617 file_system_context->EnableTemporaryFileSystemInIncognito(); |
618 } | 618 } |
619 #endif | 619 #endif |
620 } | 620 } |
621 | 621 |
622 } // namespace extensions | 622 } // namespace extensions |
OLD | NEW |