| 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 15 matching lines...) Expand all Loading... |
| 26 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
| 27 | 27 |
| 28 #if !defined(OS_CHROMEOS) | 28 #if !defined(OS_CHROMEOS) |
| 29 #include "chrome/browser/extensions/default_apps.h" | 29 #include "chrome/browser/extensions/default_apps.h" |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
| 33 #include "chrome/browser/extensions/external_registry_extension_loader_win.h" | 33 #include "chrome/browser/extensions/external_registry_extension_loader_win.h" |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 using content::BrowserThread; |
| 37 |
| 36 // Constants for keeping track of extension preferences in a dictionary. | 38 // Constants for keeping track of extension preferences in a dictionary. |
| 37 const char ExternalExtensionProviderImpl::kExternalCrx[] = "external_crx"; | 39 const char ExternalExtensionProviderImpl::kExternalCrx[] = "external_crx"; |
| 38 const char ExternalExtensionProviderImpl::kExternalVersion[] = | 40 const char ExternalExtensionProviderImpl::kExternalVersion[] = |
| 39 "external_version"; | 41 "external_version"; |
| 40 const char ExternalExtensionProviderImpl::kExternalUpdateUrl[] = | 42 const char ExternalExtensionProviderImpl::kExternalUpdateUrl[] = |
| 41 "external_update_url"; | 43 "external_update_url"; |
| 42 const char ExternalExtensionProviderImpl::kSupportedLocales[] = | 44 const char ExternalExtensionProviderImpl::kSupportedLocales[] = |
| 43 "supported_locales"; | 45 "supported_locales"; |
| 44 | 46 |
| 45 ExternalExtensionProviderImpl::ExternalExtensionProviderImpl( | 47 ExternalExtensionProviderImpl::ExternalExtensionProviderImpl( |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 service, | 358 service, |
| 357 new ExternalPrefExtensionLoader( | 359 new ExternalPrefExtensionLoader( |
| 358 chrome::DIR_DEFAULT_APPS, | 360 chrome::DIR_DEFAULT_APPS, |
| 359 ExternalPrefExtensionLoader::NONE), | 361 ExternalPrefExtensionLoader::NONE), |
| 360 Extension::EXTERNAL_PREF, | 362 Extension::EXTERNAL_PREF, |
| 361 Extension::INVALID, | 363 Extension::INVALID, |
| 362 Extension::FROM_BOOKMARK))); | 364 Extension::FROM_BOOKMARK))); |
| 363 } | 365 } |
| 364 #endif | 366 #endif |
| 365 } | 367 } |
| OLD | NEW |