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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 #include "extensions/common/feature_switch.h" | 75 #include "extensions/common/feature_switch.h" |
76 #include "extensions/common/file_util.h" | 76 #include "extensions/common/file_util.h" |
77 #include "extensions/common/manifest_constants.h" | 77 #include "extensions/common/manifest_constants.h" |
78 #include "extensions/common/manifest_handlers/background_info.h" | 78 #include "extensions/common/manifest_handlers/background_info.h" |
79 #include "extensions/common/one_shot_event.h" | 79 #include "extensions/common/one_shot_event.h" |
80 #include "extensions/common/permissions/permission_message_provider.h" | 80 #include "extensions/common/permissions/permission_message_provider.h" |
81 #include "extensions/common/permissions/permissions_data.h" | 81 #include "extensions/common/permissions/permissions_data.h" |
82 | 82 |
83 #if defined(OS_CHROMEOS) | 83 #if defined(OS_CHROMEOS) |
84 #include "chrome/browser/chromeos/extensions/install_limiter.h" | 84 #include "chrome/browser/chromeos/extensions/install_limiter.h" |
85 #include "webkit/browser/fileapi/file_system_backend.h" | 85 #include "storage/browser/fileapi/file_system_backend.h" |
86 #include "webkit/browser/fileapi/file_system_context.h" | 86 #include "storage/browser/fileapi/file_system_context.h" |
87 #endif | 87 #endif |
88 | 88 |
89 using content::BrowserContext; | 89 using content::BrowserContext; |
90 using content::BrowserThread; | 90 using content::BrowserThread; |
91 using content::DevToolsAgentHost; | 91 using content::DevToolsAgentHost; |
92 using extensions::CrxInstaller; | 92 using extensions::CrxInstaller; |
93 using extensions::Extension; | 93 using extensions::Extension; |
94 using extensions::ExtensionDownloader; | 94 using extensions::ExtensionDownloader; |
95 using extensions::ExtensionDownloaderDelegate; | 95 using extensions::ExtensionDownloaderDelegate; |
96 using extensions::ExtensionIdSet; | 96 using extensions::ExtensionIdSet; |
(...skipping 2257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2354 } | 2354 } |
2355 | 2355 |
2356 void ExtensionService::OnProfileDestructionStarted() { | 2356 void ExtensionService::OnProfileDestructionStarted() { |
2357 ExtensionIdSet ids_to_unload = registry_->enabled_extensions().GetIDs(); | 2357 ExtensionIdSet ids_to_unload = registry_->enabled_extensions().GetIDs(); |
2358 for (ExtensionIdSet::iterator it = ids_to_unload.begin(); | 2358 for (ExtensionIdSet::iterator it = ids_to_unload.begin(); |
2359 it != ids_to_unload.end(); | 2359 it != ids_to_unload.end(); |
2360 ++it) { | 2360 ++it) { |
2361 UnloadExtension(*it, UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN); | 2361 UnloadExtension(*it, UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN); |
2362 } | 2362 } |
2363 } | 2363 } |
OLD | NEW |