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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 // The default apps are installed as INTERNAL but use the external | 532 // The default apps are installed as INTERNAL but use the external |
533 // extension installer codeflow. | 533 // extension installer codeflow. |
534 provider_list->push_back( | 534 provider_list->push_back( |
535 linked_ptr<ExternalProviderInterface>( | 535 linked_ptr<ExternalProviderInterface>( |
536 new default_apps::Provider( | 536 new default_apps::Provider( |
537 profile, | 537 profile, |
538 service, | 538 service, |
539 new ExternalPrefLoader(chrome::DIR_DEFAULT_APPS, | 539 new ExternalPrefLoader(chrome::DIR_DEFAULT_APPS, |
540 ExternalPrefLoader::NONE), | 540 ExternalPrefLoader::NONE), |
541 Manifest::INTERNAL, | 541 Manifest::INTERNAL, |
542 Manifest::INVALID_LOCATION, | 542 Manifest::EXTERNAL_PREF_DOWNLOAD, |
543 Extension::FROM_WEBSTORE | | 543 Extension::FROM_WEBSTORE | |
544 Extension::WAS_INSTALLED_BY_DEFAULT))); | 544 Extension::WAS_INSTALLED_BY_DEFAULT))); |
545 #endif | 545 #endif |
546 | 546 |
547 provider_list->push_back( | 547 provider_list->push_back( |
548 linked_ptr<ExternalProviderInterface>( | 548 linked_ptr<ExternalProviderInterface>( |
549 new ExternalProviderImpl( | 549 new ExternalProviderImpl( |
550 service, | 550 service, |
551 new ExternalComponentLoader(profile), | 551 new ExternalComponentLoader(profile), |
552 profile, | 552 profile, |
553 Manifest::INVALID_LOCATION, | 553 Manifest::INVALID_LOCATION, |
554 Manifest::EXTERNAL_COMPONENT, | 554 Manifest::EXTERNAL_COMPONENT, |
555 Extension::FROM_WEBSTORE | Extension::WAS_INSTALLED_BY_DEFAULT))); | 555 Extension::FROM_WEBSTORE | Extension::WAS_INSTALLED_BY_DEFAULT))); |
556 } | 556 } |
557 } | 557 } |
558 | 558 |
559 } // namespace extensions | 559 } // namespace extensions |
OLD | NEW |