| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 #if defined(OS_CHROMEOS) | 108 #if defined(OS_CHROMEOS) |
| 109 #include "chrome/browser/chromeos/cros/cros_library.h" | 109 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 110 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h" | 110 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h" |
| 111 #include "chrome/browser/chromeos/extensions/input_method_event_router.h" | 111 #include "chrome/browser/chromeos/extensions/input_method_event_router.h" |
| 112 #include "chrome/browser/chromeos/extensions/media_player_event_router.h" | 112 #include "chrome/browser/chromeos/extensions/media_player_event_router.h" |
| 113 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 113 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
| 114 #include "chrome/browser/extensions/extension_input_ime_api.h" | 114 #include "chrome/browser/extensions/extension_input_ime_api.h" |
| 115 #include "webkit/fileapi/file_system_context.h" | 115 #include "webkit/fileapi/file_system_context.h" |
| 116 #include "webkit/fileapi/file_system_mount_point_provider.h" | 116 #include "webkit/fileapi/file_system_mount_point_provider.h" |
| 117 #include "webkit/fileapi/file_system_path_manager.h" | |
| 118 #endif | 117 #endif |
| 119 | 118 |
| 120 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD) | 119 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD) |
| 121 #include "chrome/browser/extensions/extension_input_ui_api.h" | 120 #include "chrome/browser/extensions/extension_input_ui_api.h" |
| 122 #endif | 121 #endif |
| 123 | 122 |
| 124 using base::Time; | 123 using base::Time; |
| 125 using content::BrowserThread; | 124 using content::BrowserThread; |
| 126 using content::DevToolsAgentHost; | 125 using content::DevToolsAgentHost; |
| 127 using content::DevToolsAgentHostRegistry; | 126 using content::DevToolsAgentHostRegistry; |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 profile_->UnregisterExtensionWithRequestContexts(extension->id(), reason); | 1081 profile_->UnregisterExtensionWithRequestContexts(extension->id(), reason); |
| 1083 profile_->GetExtensionSpecialStoragePolicy()-> | 1082 profile_->GetExtensionSpecialStoragePolicy()-> |
| 1084 RevokeRightsForExtension(extension); | 1083 RevokeRightsForExtension(extension); |
| 1085 | 1084 |
| 1086 ExtensionWebUI::UnregisterChromeURLOverrides( | 1085 ExtensionWebUI::UnregisterChromeURLOverrides( |
| 1087 profile_, extension->GetChromeURLOverrides()); | 1086 profile_, extension->GetChromeURLOverrides()); |
| 1088 | 1087 |
| 1089 #if defined(OS_CHROMEOS) | 1088 #if defined(OS_CHROMEOS) |
| 1090 // Revoke external file access to | 1089 // Revoke external file access to |
| 1091 if (profile_->GetFileSystemContext() && | 1090 if (profile_->GetFileSystemContext() && |
| 1092 profile_->GetFileSystemContext()->path_manager() && | 1091 profile_->GetFileSystemContext()->external_provider()) { |
| 1093 profile_->GetFileSystemContext()->path_manager()->external_provider()) { | 1092 profile_->GetFileSystemContext()->external_provider()-> |
| 1094 profile_->GetFileSystemContext()->path_manager()->external_provider()-> | |
| 1095 RevokeAccessForExtension(extension->id()); | 1093 RevokeAccessForExtension(extension->id()); |
| 1096 } | 1094 } |
| 1097 | 1095 |
| 1098 if (extension->input_components().size() > 0) { | 1096 if (extension->input_components().size() > 0) { |
| 1099 ExtensionInputImeEventRouter::GetInstance()->UnregisterAllImes( | 1097 ExtensionInputImeEventRouter::GetInstance()->UnregisterAllImes( |
| 1100 profile_, extension->id()); | 1098 profile_, extension->id()); |
| 1101 } | 1099 } |
| 1102 #endif | 1100 #endif |
| 1103 | 1101 |
| 1104 UpdateActiveExtensionsInCrashReporter(); | 1102 UpdateActiveExtensionsInCrashReporter(); |
| (...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2583 // | 2581 // |
| 2584 // To coexist with certain unit tests that don't have an IO thread message | 2582 // To coexist with certain unit tests that don't have an IO thread message |
| 2585 // loop available at ExtensionService shutdown, we lazy-initialize this | 2583 // loop available at ExtensionService shutdown, we lazy-initialize this |
| 2586 // object so that those cases neither create nor destroy a SocketController. | 2584 // object so that those cases neither create nor destroy a SocketController. |
| 2587 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 2585 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 2588 if (!socket_controller_) { | 2586 if (!socket_controller_) { |
| 2589 socket_controller_ = new extensions::SocketController(); | 2587 socket_controller_ = new extensions::SocketController(); |
| 2590 } | 2588 } |
| 2591 return socket_controller_; | 2589 return socket_controller_; |
| 2592 } | 2590 } |
| OLD | NEW |