| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 #if !defined(OS_CHROMEOS) | 34 #if !defined(OS_CHROMEOS) |
| 35 #include "chrome/browser/extensions/default_apps.h" | 35 #include "chrome/browser/extensions/default_apps.h" |
| 36 #endif | 36 #endif |
| 37 | 37 |
| 38 #if defined(OS_WIN) | 38 #if defined(OS_WIN) |
| 39 #include "chrome/browser/extensions/external_registry_extension_loader_win.h" | 39 #include "chrome/browser/extensions/external_registry_extension_loader_win.h" |
| 40 #endif | 40 #endif |
| 41 | 41 |
| 42 using content::BrowserThread; | 42 using content::BrowserThread; |
| 43 using extensions::Extension; |
| 43 | 44 |
| 44 // Constants for keeping track of extension preferences in a dictionary. | 45 // Constants for keeping track of extension preferences in a dictionary. |
| 45 const char ExternalExtensionProviderImpl::kExternalCrx[] = "external_crx"; | 46 const char ExternalExtensionProviderImpl::kExternalCrx[] = "external_crx"; |
| 46 const char ExternalExtensionProviderImpl::kExternalVersion[] = | 47 const char ExternalExtensionProviderImpl::kExternalVersion[] = |
| 47 "external_version"; | 48 "external_version"; |
| 48 const char ExternalExtensionProviderImpl::kExternalUpdateUrl[] = | 49 const char ExternalExtensionProviderImpl::kExternalUpdateUrl[] = |
| 49 "external_update_url"; | 50 "external_update_url"; |
| 50 const char ExternalExtensionProviderImpl::kSupportedLocales[] = | 51 const char ExternalExtensionProviderImpl::kSupportedLocales[] = |
| 51 "supported_locales"; | 52 "supported_locales"; |
| 52 const char ExternalExtensionProviderImpl::kIsBookmarkApp[] = | 53 const char ExternalExtensionProviderImpl::kIsBookmarkApp[] = |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 linked_ptr<ExternalExtensionProviderInterface>( | 405 linked_ptr<ExternalExtensionProviderInterface>( |
| 405 new ExternalExtensionProviderImpl( | 406 new ExternalExtensionProviderImpl( |
| 406 service, | 407 service, |
| 407 connector->GetAppPackUpdater()->CreateExternalExtensionLoader(), | 408 connector->GetAppPackUpdater()->CreateExternalExtensionLoader(), |
| 408 Extension::EXTERNAL_PREF, | 409 Extension::EXTERNAL_PREF, |
| 409 Extension::INVALID, | 410 Extension::INVALID, |
| 410 Extension::NO_FLAGS))); | 411 Extension::NO_FLAGS))); |
| 411 } | 412 } |
| 412 #endif | 413 #endif |
| 413 } | 414 } |
| OLD | NEW |