| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <iterator> | 8 #include <iterator> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 53 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
| 54 #include "chrome/browser/ui/webui/favicon_source.h" | 54 #include "chrome/browser/ui/webui/favicon_source.h" |
| 55 #include "chrome/browser/ui/webui/theme_source.h" | 55 #include "chrome/browser/ui/webui/theme_source.h" |
| 56 #include "chrome/common/chrome_switches.h" | 56 #include "chrome/common/chrome_switches.h" |
| 57 #include "chrome/common/crash_keys.h" | 57 #include "chrome/common/crash_keys.h" |
| 58 #include "chrome/common/extensions/extension_constants.h" | 58 #include "chrome/common/extensions/extension_constants.h" |
| 59 #include "chrome/common/extensions/features/feature_channel.h" | 59 #include "chrome/common/extensions/features/feature_channel.h" |
| 60 #include "chrome/common/url_constants.h" | 60 #include "chrome/common/url_constants.h" |
| 61 #include "components/content_settings/core/browser/host_content_settings_map.h" | 61 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 62 #include "components/crx_file/id_util.h" | 62 #include "components/crx_file/id_util.h" |
| 63 #include "components/startup_metric_utils/startup_metric_utils.h" | |
| 64 #include "content/public/browser/devtools_agent_host.h" | 63 #include "content/public/browser/devtools_agent_host.h" |
| 65 #include "content/public/browser/notification_service.h" | 64 #include "content/public/browser/notification_service.h" |
| 66 #include "content/public/browser/render_process_host.h" | 65 #include "content/public/browser/render_process_host.h" |
| 67 #include "content/public/browser/storage_partition.h" | 66 #include "content/public/browser/storage_partition.h" |
| 68 #include "extensions/browser/app_sorting.h" | 67 #include "extensions/browser/app_sorting.h" |
| 69 #include "extensions/browser/event_router.h" | 68 #include "extensions/browser/event_router.h" |
| 70 #include "extensions/browser/extension_host.h" | 69 #include "extensions/browser/extension_host.h" |
| 71 #include "extensions/browser/extension_prefs.h" | 70 #include "extensions/browser/extension_prefs.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" |
| (...skipping 2480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2554 } | 2553 } |
| 2555 | 2554 |
| 2556 void ExtensionService::OnProfileDestructionStarted() { | 2555 void ExtensionService::OnProfileDestructionStarted() { |
| 2557 ExtensionIdSet ids_to_unload = registry_->enabled_extensions().GetIDs(); | 2556 ExtensionIdSet ids_to_unload = registry_->enabled_extensions().GetIDs(); |
| 2558 for (ExtensionIdSet::iterator it = ids_to_unload.begin(); | 2557 for (ExtensionIdSet::iterator it = ids_to_unload.begin(); |
| 2559 it != ids_to_unload.end(); | 2558 it != ids_to_unload.end(); |
| 2560 ++it) { | 2559 ++it) { |
| 2561 UnloadExtension(*it, UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN); | 2560 UnloadExtension(*it, UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN); |
| 2562 } | 2561 } |
| 2563 } | 2562 } |
| OLD | NEW |