OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 profile_->UnregisterExtensionWithRequestContexts(extension->id(), reason); | 1109 profile_->UnregisterExtensionWithRequestContexts(extension->id(), reason); |
1111 profile_->GetExtensionSpecialStoragePolicy()-> | 1110 profile_->GetExtensionSpecialStoragePolicy()-> |
1112 RevokeRightsForExtension(extension); | 1111 RevokeRightsForExtension(extension); |
1113 | 1112 |
1114 ExtensionWebUI::UnregisterChromeURLOverrides( | 1113 ExtensionWebUI::UnregisterChromeURLOverrides( |
1115 profile_, extension->GetChromeURLOverrides()); | 1114 profile_, extension->GetChromeURLOverrides()); |
1116 | 1115 |
1117 #if defined(OS_CHROMEOS) | 1116 #if defined(OS_CHROMEOS) |
1118 // Revoke external file access to | 1117 // Revoke external file access to |
1119 if (profile_->GetFileSystemContext() && | 1118 if (profile_->GetFileSystemContext() && |
1120 profile_->GetFileSystemContext()->path_manager() && | 1119 profile_->GetFileSystemContext()->external_provider()) { |
1121 profile_->GetFileSystemContext()->path_manager()->external_provider()) { | 1120 profile_->GetFileSystemContext()->external_provider()-> |
1122 profile_->GetFileSystemContext()->path_manager()->external_provider()-> | |
1123 RevokeAccessForExtension(extension->id()); | 1121 RevokeAccessForExtension(extension->id()); |
1124 } | 1122 } |
1125 | 1123 |
1126 if (extension->input_components().size() > 0) { | 1124 if (extension->input_components().size() > 0) { |
1127 ExtensionInputImeEventRouter::GetInstance()->UnregisterAllImes( | 1125 ExtensionInputImeEventRouter::GetInstance()->UnregisterAllImes( |
1128 profile_, extension->id()); | 1126 profile_, extension->id()); |
1129 } | 1127 } |
1130 #endif | 1128 #endif |
1131 | 1129 |
1132 UpdateActiveExtensionsInCrashReporter(); | 1130 UpdateActiveExtensionsInCrashReporter(); |
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2662 // | 2660 // |
2663 // To coexist with certain unit tests that don't have an IO thread message | 2661 // To coexist with certain unit tests that don't have an IO thread message |
2664 // loop available at ExtensionService shutdown, we lazy-initialize this | 2662 // loop available at ExtensionService shutdown, we lazy-initialize this |
2665 // object so that those cases neither create nor destroy a SocketController. | 2663 // object so that those cases neither create nor destroy a SocketController. |
2666 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 2664 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
2667 if (!socket_controller_) { | 2665 if (!socket_controller_) { |
2668 socket_controller_ = new extensions::SocketController(); | 2666 socket_controller_ = new extensions::SocketController(); |
2669 } | 2667 } |
2670 return socket_controller_; | 2668 return socket_controller_; |
2671 } | 2669 } |
OLD | NEW |