| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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" | 63 #include "components/startup_metric_utils/startup_metric_utils.h" |
| 64 #include "content/public/browser/devtools_agent_host.h" | 64 #include "content/public/browser/devtools_agent_host.h" |
| 65 #include "content/public/browser/notification_service.h" | 65 #include "content/public/browser/notification_service.h" |
| 66 #include "content/public/browser/render_process_host.h" | 66 #include "content/public/browser/render_process_host.h" |
| 67 #include "content/public/browser/storage_partition.h" | 67 #include "content/public/browser/storage_partition.h" |
| 68 #include "extensions/browser/app_sorting.h" |
| 68 #include "extensions/browser/event_router.h" | 69 #include "extensions/browser/event_router.h" |
| 69 #include "extensions/browser/extension_host.h" | 70 #include "extensions/browser/extension_host.h" |
| 70 #include "extensions/browser/extension_prefs.h" | 71 #include "extensions/browser/extension_prefs.h" |
| 71 #include "extensions/browser/extension_registry.h" | 72 #include "extensions/browser/extension_registry.h" |
| 72 #include "extensions/browser/extension_system.h" | 73 #include "extensions/browser/extension_system.h" |
| 73 #include "extensions/browser/extensions_browser_client.h" | 74 #include "extensions/browser/extensions_browser_client.h" |
| 74 #include "extensions/browser/install_flag.h" | 75 #include "extensions/browser/install_flag.h" |
| 75 #include "extensions/browser/runtime_data.h" | 76 #include "extensions/browser/runtime_data.h" |
| 76 #include "extensions/browser/uninstall_reason.h" | 77 #include "extensions/browser/uninstall_reason.h" |
| 77 #include "extensions/browser/update_observer.h" | 78 #include "extensions/browser/update_observer.h" |
| (...skipping 2509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2587 } | 2588 } |
| 2588 | 2589 |
| 2589 void ExtensionService::OnProfileDestructionStarted() { | 2590 void ExtensionService::OnProfileDestructionStarted() { |
| 2590 ExtensionIdSet ids_to_unload = registry_->enabled_extensions().GetIDs(); | 2591 ExtensionIdSet ids_to_unload = registry_->enabled_extensions().GetIDs(); |
| 2591 for (ExtensionIdSet::iterator it = ids_to_unload.begin(); | 2592 for (ExtensionIdSet::iterator it = ids_to_unload.begin(); |
| 2592 it != ids_to_unload.end(); | 2593 it != ids_to_unload.end(); |
| 2593 ++it) { | 2594 ++it) { |
| 2594 UnloadExtension(*it, UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN); | 2595 UnloadExtension(*it, UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN); |
| 2595 } | 2596 } |
| 2596 } | 2597 } |
| OLD | NEW |