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/external_provider_impl.h" | 5 #include "chrome/browser/extensions/external_provider_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <vector> | 8 #include <vector> |
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 chromeos::ServicesCustomizationDocument::GetInstance(); | 491 chromeos::ServicesCustomizationDocument::GetInstance(); |
492 provider_list->push_back(linked_ptr<ExternalProviderInterface>( | 492 provider_list->push_back(linked_ptr<ExternalProviderInterface>( |
493 new ExternalProviderImpl(service, | 493 new ExternalProviderImpl(service, |
494 customization->CreateExternalLoader(profile), | 494 customization->CreateExternalLoader(profile), |
495 profile, | 495 profile, |
496 Manifest::EXTERNAL_PREF, | 496 Manifest::EXTERNAL_PREF, |
497 Manifest::EXTERNAL_PREF_DOWNLOAD, | 497 Manifest::EXTERNAL_PREF_DOWNLOAD, |
498 oem_extension_creation_flags))); | 498 oem_extension_creation_flags))); |
499 } | 499 } |
500 #elif defined(OS_LINUX) | 500 #elif defined(OS_LINUX) |
501 if (!profile->IsSupervised()) { | 501 if (!profile->IsLegacySupervised()) { |
502 provider_list->push_back( | 502 provider_list->push_back( |
503 linked_ptr<ExternalProviderInterface>( | 503 linked_ptr<ExternalProviderInterface>( |
504 new ExternalProviderImpl( | 504 new ExternalProviderImpl( |
505 service, | 505 service, |
506 new ExternalPrefLoader( | 506 new ExternalPrefLoader( |
507 chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS, | 507 chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS, |
508 ExternalPrefLoader::NONE, | 508 ExternalPrefLoader::NONE, |
509 NULL), | 509 NULL), |
510 profile, | 510 profile, |
511 Manifest::EXTERNAL_PREF, | 511 Manifest::EXTERNAL_PREF, |
512 Manifest::EXTERNAL_PREF_DOWNLOAD, | 512 Manifest::EXTERNAL_PREF_DOWNLOAD, |
513 bundled_extension_creation_flags))); | 513 bundled_extension_creation_flags))); |
514 } | 514 } |
515 #endif | 515 #endif |
516 | 516 |
517 if (!profile->IsSupervised()) { | 517 if (!profile->IsLegacySupervised()) { |
518 #if defined(OS_WIN) | 518 #if defined(OS_WIN) |
519 provider_list->push_back( | 519 provider_list->push_back( |
520 linked_ptr<ExternalProviderInterface>( | 520 linked_ptr<ExternalProviderInterface>( |
521 new ExternalProviderImpl( | 521 new ExternalProviderImpl( |
522 service, | 522 service, |
523 new ExternalRegistryLoader, | 523 new ExternalRegistryLoader, |
524 profile, | 524 profile, |
525 Manifest::EXTERNAL_REGISTRY, | 525 Manifest::EXTERNAL_REGISTRY, |
526 Manifest::EXTERNAL_PREF_DOWNLOAD, | 526 Manifest::EXTERNAL_PREF_DOWNLOAD, |
527 Extension::NO_FLAGS))); | 527 Extension::NO_FLAGS))); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 profile, | 563 profile, |
564 service, | 564 service, |
565 new ExternalPrefLoader(chrome::DIR_DEFAULT_APPS, | 565 new ExternalPrefLoader(chrome::DIR_DEFAULT_APPS, |
566 ExternalPrefLoader::NONE, | 566 ExternalPrefLoader::NONE, |
567 NULL), | 567 NULL), |
568 Manifest::INTERNAL, | 568 Manifest::INTERNAL, |
569 Manifest::INTERNAL, | 569 Manifest::INTERNAL, |
570 Extension::FROM_WEBSTORE | | 570 Extension::FROM_WEBSTORE | |
571 Extension::WAS_INSTALLED_BY_DEFAULT))); | 571 Extension::WAS_INSTALLED_BY_DEFAULT))); |
572 #endif | 572 #endif |
| 573 } |
573 | 574 |
574 provider_list->push_back( | 575 provider_list->push_back( |
575 linked_ptr<ExternalProviderInterface>( | 576 linked_ptr<ExternalProviderInterface>( |
576 new ExternalProviderImpl( | 577 new ExternalProviderImpl( |
577 service, | 578 service, |
578 new ExternalComponentLoader(profile), | 579 new ExternalComponentLoader(profile), |
579 profile, | 580 profile, |
580 Manifest::INVALID_LOCATION, | 581 Manifest::INVALID_LOCATION, |
581 Manifest::EXTERNAL_COMPONENT, | 582 Manifest::EXTERNAL_COMPONENT, |
582 Extension::FROM_WEBSTORE | Extension::WAS_INSTALLED_BY_DEFAULT))); | 583 Extension::FROM_WEBSTORE | Extension::WAS_INSTALLED_BY_DEFAULT))); |
583 } | |
584 } | 584 } |
585 | 585 |
586 } // namespace extensions | 586 } // namespace extensions |
OLD | NEW |