| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 Extension::EXTERNAL_POLICY_DOWNLOAD, | 348 Extension::EXTERNAL_POLICY_DOWNLOAD, |
| 349 Extension::NO_FLAGS))); | 349 Extension::NO_FLAGS))); |
| 350 | 350 |
| 351 #if !defined(OS_CHROMEOS) | 351 #if !defined(OS_CHROMEOS) |
| 352 if (default_apps::ShouldInstallInProfile(profile)) { | 352 if (default_apps::ShouldInstallInProfile(profile)) { |
| 353 provider_list->push_back( | 353 provider_list->push_back( |
| 354 linked_ptr<ExternalExtensionProviderInterface>( | 354 linked_ptr<ExternalExtensionProviderInterface>( |
| 355 new ExternalExtensionProviderImpl( | 355 new ExternalExtensionProviderImpl( |
| 356 service, | 356 service, |
| 357 new ExternalPrefExtensionLoader( | 357 new ExternalPrefExtensionLoader( |
| 358 chrome::DIR_DEFAULT_APPS, options), | 358 chrome::DIR_DEFAULT_APPS, |
| 359 ExternalPrefExtensionLoader::NONE), |
| 359 Extension::EXTERNAL_PREF, | 360 Extension::EXTERNAL_PREF, |
| 360 Extension::INVALID, | 361 Extension::INVALID, |
| 361 Extension::FROM_BOOKMARK))); | 362 Extension::FROM_BOOKMARK))); |
| 362 } | 363 } |
| 363 #endif | 364 #endif |
| 364 } | 365 } |
| OLD | NEW |