| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/extension_service.h" | 5 #include "chrome/browser/extensions/extension_service.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <iterator> | 10 #include <iterator> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "chrome/browser/extensions/updater/extension_updater.h" | 51 #include "chrome/browser/extensions/updater/extension_updater.h" |
| 52 #include "chrome/browser/google/google_brand.h" | 52 #include "chrome/browser/google/google_brand.h" |
| 53 #include "chrome/browser/profiles/profile.h" | 53 #include "chrome/browser/profiles/profile.h" |
| 54 #include "chrome/browser/search/thumbnail_source.h" | 54 #include "chrome/browser/search/thumbnail_source.h" |
| 55 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 55 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
| 56 #include "chrome/browser/ui/webui/favicon_source.h" | 56 #include "chrome/browser/ui/webui/favicon_source.h" |
| 57 #include "chrome/browser/ui/webui/theme_source.h" | 57 #include "chrome/browser/ui/webui/theme_source.h" |
| 58 #include "chrome/common/chrome_switches.h" | 58 #include "chrome/common/chrome_switches.h" |
| 59 #include "chrome/common/crash_keys.h" | 59 #include "chrome/common/crash_keys.h" |
| 60 #include "chrome/common/extensions/extension_constants.h" | 60 #include "chrome/common/extensions/extension_constants.h" |
| 61 #include "chrome/common/extensions/features/feature_channel.h" | |
| 62 #include "chrome/common/url_constants.h" | 61 #include "chrome/common/url_constants.h" |
| 63 #include "components/content_settings/core/browser/host_content_settings_map.h" | 62 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 64 #include "components/crx_file/id_util.h" | 63 #include "components/crx_file/id_util.h" |
| 65 #include "content/public/browser/devtools_agent_host.h" | 64 #include "content/public/browser/devtools_agent_host.h" |
| 66 #include "content/public/browser/notification_service.h" | 65 #include "content/public/browser/notification_service.h" |
| 67 #include "content/public/browser/render_process_host.h" | 66 #include "content/public/browser/render_process_host.h" |
| 68 #include "content/public/browser/storage_partition.h" | 67 #include "content/public/browser/storage_partition.h" |
| 69 #include "extensions/browser/app_sorting.h" | 68 #include "extensions/browser/app_sorting.h" |
| 70 #include "extensions/browser/event_router.h" | 69 #include "extensions/browser/event_router.h" |
| 71 #include "extensions/browser/extension_host.h" | 70 #include "extensions/browser/extension_host.h" |
| 72 #include "extensions/browser/extension_registry.h" | 71 #include "extensions/browser/extension_registry.h" |
| 73 #include "extensions/browser/extension_system.h" | 72 #include "extensions/browser/extension_system.h" |
| 74 #include "extensions/browser/extensions_browser_client.h" | 73 #include "extensions/browser/extensions_browser_client.h" |
| 75 #include "extensions/browser/external_install_info.h" | 74 #include "extensions/browser/external_install_info.h" |
| 76 #include "extensions/browser/install_flag.h" | 75 #include "extensions/browser/install_flag.h" |
| 77 #include "extensions/browser/runtime_data.h" | 76 #include "extensions/browser/runtime_data.h" |
| 78 #include "extensions/browser/uninstall_reason.h" | 77 #include "extensions/browser/uninstall_reason.h" |
| 79 #include "extensions/browser/update_observer.h" | 78 #include "extensions/browser/update_observer.h" |
| 80 #include "extensions/browser/updater/extension_cache.h" | 79 #include "extensions/browser/updater/extension_cache.h" |
| 81 #include "extensions/browser/updater/extension_downloader.h" | 80 #include "extensions/browser/updater/extension_downloader.h" |
| 82 #include "extensions/common/extension_messages.h" | 81 #include "extensions/common/extension_messages.h" |
| 83 #include "extensions/common/extension_urls.h" | 82 #include "extensions/common/extension_urls.h" |
| 84 #include "extensions/common/feature_switch.h" | 83 #include "extensions/common/feature_switch.h" |
| 84 #include "extensions/common/features/feature_channel.h" |
| 85 #include "extensions/common/file_util.h" | 85 #include "extensions/common/file_util.h" |
| 86 #include "extensions/common/manifest_constants.h" | 86 #include "extensions/common/manifest_constants.h" |
| 87 #include "extensions/common/manifest_handlers/background_info.h" | 87 #include "extensions/common/manifest_handlers/background_info.h" |
| 88 #include "extensions/common/manifest_url_handlers.h" | 88 #include "extensions/common/manifest_url_handlers.h" |
| 89 #include "extensions/common/one_shot_event.h" | 89 #include "extensions/common/one_shot_event.h" |
| 90 #include "extensions/common/permissions/api_permission.h" | 90 #include "extensions/common/permissions/api_permission.h" |
| 91 #include "extensions/common/permissions/permission_message_provider.h" | 91 #include "extensions/common/permissions/permission_message_provider.h" |
| 92 #include "extensions/common/permissions/permissions_data.h" | 92 #include "extensions/common/permissions/permissions_data.h" |
| 93 | 93 |
| 94 #if defined(ENABLE_SUPERVISED_USERS) | 94 #if defined(ENABLE_SUPERVISED_USERS) |
| (...skipping 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2448 } | 2448 } |
| 2449 | 2449 |
| 2450 void ExtensionService::OnProfileDestructionStarted() { | 2450 void ExtensionService::OnProfileDestructionStarted() { |
| 2451 ExtensionIdSet ids_to_unload = registry_->enabled_extensions().GetIDs(); | 2451 ExtensionIdSet ids_to_unload = registry_->enabled_extensions().GetIDs(); |
| 2452 for (ExtensionIdSet::iterator it = ids_to_unload.begin(); | 2452 for (ExtensionIdSet::iterator it = ids_to_unload.begin(); |
| 2453 it != ids_to_unload.end(); | 2453 it != ids_to_unload.end(); |
| 2454 ++it) { | 2454 ++it) { |
| 2455 UnloadExtension(*it, UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN); | 2455 UnloadExtension(*it, UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN); |
| 2456 } | 2456 } |
| 2457 } | 2457 } |
| OLD | NEW |