| 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/component_loader.h" | 5 #include "chrome/browser/extensions/component_loader.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/json/json_string_value_serializer.h" | 9 #include "base/json/json_string_value_serializer.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #if defined(OS_CHROMEOS) | 37 #if defined(OS_CHROMEOS) |
| 38 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 38 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
| 39 #include "chrome/browser/chromeos/login/user_manager.h" | 39 #include "chrome/browser/chromeos/login/user_manager.h" |
| 40 #include "chrome/browser/extensions/extension_service.h" | 40 #include "chrome/browser/extensions/extension_service.h" |
| 41 #include "chrome/browser/extensions/extension_system.h" | 41 #include "chrome/browser/extensions/extension_system.h" |
| 42 #include "chrome/browser/profiles/profile.h" | 42 #include "chrome/browser/profiles/profile.h" |
| 43 #include "chrome/browser/profiles/profile_manager.h" | 43 #include "chrome/browser/profiles/profile_manager.h" |
| 44 #include "chromeos/chromeos_switches.h" | 44 #include "chromeos/chromeos_switches.h" |
| 45 #include "content/public/browser/storage_partition.h" | 45 #include "content/public/browser/storage_partition.h" |
| 46 #include "webkit/browser/fileapi/file_system_context.h" | 46 #include "webkit/browser/fileapi/file_system_context.h" |
| 47 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h" | 47 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 #if defined(ENABLE_APP_LIST) | 50 #if defined(ENABLE_APP_LIST) |
| 51 #include "grit/chromium_strings.h" | 51 #include "grit/chromium_strings.h" |
| 52 #include "ui/base/l10n/l10n_util.h" | 52 #include "ui/base/l10n/l10n_util.h" |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 namespace extensions { | 55 namespace extensions { |
| 56 | 56 |
| 57 namespace { | 57 namespace { |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 void ComponentLoader::UnloadComponent(ComponentExtensionInfo* component) { | 435 void ComponentLoader::UnloadComponent(ComponentExtensionInfo* component) { |
| 436 delete component->manifest; | 436 delete component->manifest; |
| 437 if (extension_service_->is_ready()) { | 437 if (extension_service_->is_ready()) { |
| 438 extension_service_-> | 438 extension_service_-> |
| 439 UnloadExtension(component->extension_id, | 439 UnloadExtension(component->extension_id, |
| 440 extension_misc::UNLOAD_REASON_DISABLE); | 440 extension_misc::UNLOAD_REASON_DISABLE); |
| 441 } | 441 } |
| 442 } | 442 } |
| 443 | 443 |
| 444 } // namespace extensions | 444 } // namespace extensions |
| OLD | NEW |