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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 #endif | 488 #endif |
489 | 489 |
490 #if defined(OS_WIN) | 490 #if defined(OS_WIN) |
491 provider_list->push_back( | 491 provider_list->push_back( |
492 linked_ptr<ExternalProviderInterface>( | 492 linked_ptr<ExternalProviderInterface>( |
493 new ExternalProviderImpl( | 493 new ExternalProviderImpl( |
494 service, | 494 service, |
495 new ExternalRegistryLoader, | 495 new ExternalRegistryLoader, |
496 profile, | 496 profile, |
497 Manifest::EXTERNAL_REGISTRY, | 497 Manifest::EXTERNAL_REGISTRY, |
498 Manifest::INVALID_LOCATION, | 498 Manifest::EXTERNAL_PREF_DOWNLOAD, |
499 Extension::NO_FLAGS))); | 499 Extension::NO_FLAGS))); |
500 #endif | 500 #endif |
501 | 501 |
502 #if !defined(OS_CHROMEOS) | 502 #if !defined(OS_CHROMEOS) |
503 // The default apps are installed as INTERNAL but use the external | 503 // The default apps are installed as INTERNAL but use the external |
504 // extension installer codeflow. | 504 // extension installer codeflow. |
505 provider_list->push_back( | 505 provider_list->push_back( |
506 linked_ptr<ExternalProviderInterface>( | 506 linked_ptr<ExternalProviderInterface>( |
507 new default_apps::Provider( | 507 new default_apps::Provider( |
508 profile, | 508 profile, |
(...skipping 12 matching lines...) Expand all Loading... |
521 service, | 521 service, |
522 new ExternalComponentLoader(profile), | 522 new ExternalComponentLoader(profile), |
523 profile, | 523 profile, |
524 Manifest::INVALID_LOCATION, | 524 Manifest::INVALID_LOCATION, |
525 Manifest::EXTERNAL_COMPONENT, | 525 Manifest::EXTERNAL_COMPONENT, |
526 Extension::FROM_WEBSTORE | Extension::WAS_INSTALLED_BY_DEFAULT))); | 526 Extension::FROM_WEBSTORE | Extension::WAS_INSTALLED_BY_DEFAULT))); |
527 } | 527 } |
528 } | 528 } |
529 | 529 |
530 } // namespace extensions | 530 } // namespace extensions |
OLD | NEW |