| 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_extension_provider_impl.h" | 5 #include "chrome/browser/extensions/external_extension_provider_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 #if defined(OS_WIN) | 348 #if defined(OS_WIN) |
| 349 provider_list->push_back( | 349 provider_list->push_back( |
| 350 linked_ptr<ExternalExtensionProviderInterface>( | 350 linked_ptr<ExternalExtensionProviderInterface>( |
| 351 new ExternalExtensionProviderImpl( | 351 new ExternalExtensionProviderImpl( |
| 352 service, | 352 service, |
| 353 new ExternalRegistryExtensionLoader, | 353 new ExternalRegistryExtensionLoader, |
| 354 Extension::EXTERNAL_REGISTRY, | 354 Extension::EXTERNAL_REGISTRY, |
| 355 Extension::INVALID, | 355 Extension::INVALID, |
| 356 Extension::NO_FLAGS))); | 356 Extension::NO_FLAGS))); |
| 357 #endif | 357 #endif |
| 358 |
| 359 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 360 provider_list->push_back( |
| 361 linked_ptr<ExternalExtensionProviderInterface>( |
| 362 new ExternalExtensionProviderImpl( |
| 363 service, |
| 364 new ExternalPrefExtensionLoader( |
| 365 chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS, |
| 366 ExternalPrefExtensionLoader::NONE), |
| 367 Extension::EXTERNAL_PREF, |
| 368 Extension::EXTERNAL_PREF_DOWNLOAD, |
| 369 Extension::NO_FLAGS))); |
| 370 #endif |
| 371 |
| 358 provider_list->push_back( | 372 provider_list->push_back( |
| 359 linked_ptr<ExternalExtensionProviderInterface>( | 373 linked_ptr<ExternalExtensionProviderInterface>( |
| 360 new ExternalExtensionProviderImpl( | 374 new ExternalExtensionProviderImpl( |
| 361 service, | 375 service, |
| 362 new ExternalPolicyExtensionLoader(profile), | 376 new ExternalPolicyExtensionLoader(profile), |
| 363 Extension::INVALID, | 377 Extension::INVALID, |
| 364 Extension::EXTERNAL_POLICY_DOWNLOAD, | 378 Extension::EXTERNAL_POLICY_DOWNLOAD, |
| 365 Extension::NO_FLAGS))); | 379 Extension::NO_FLAGS))); |
| 366 | 380 |
| 367 #if !defined(OS_CHROMEOS) | 381 #if !defined(OS_CHROMEOS) |
| (...skipping 21 matching lines...) Expand all Loading... |
| 389 linked_ptr<ExternalExtensionProviderInterface>( | 403 linked_ptr<ExternalExtensionProviderInterface>( |
| 390 new ExternalExtensionProviderImpl( | 404 new ExternalExtensionProviderImpl( |
| 391 service, | 405 service, |
| 392 connector->GetAppPackUpdater()->CreateExternalExtensionLoader(), | 406 connector->GetAppPackUpdater()->CreateExternalExtensionLoader(), |
| 393 Extension::EXTERNAL_PREF, | 407 Extension::EXTERNAL_PREF, |
| 394 Extension::INVALID, | 408 Extension::INVALID, |
| 395 Extension::NO_FLAGS))); | 409 Extension::NO_FLAGS))); |
| 396 } | 410 } |
| 397 #endif | 411 #endif |
| 398 } | 412 } |
| OLD | NEW |