Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(644)

Side by Side Diff: chrome/browser/extensions/extension_service.cc

Issue 9004019: Cleanup: Removing FileSystemPathManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 profile_->UnregisterExtensionWithRequestContexts(extension->id(), reason); 1088 profile_->UnregisterExtensionWithRequestContexts(extension->id(), reason);
1090 profile_->GetExtensionSpecialStoragePolicy()-> 1089 profile_->GetExtensionSpecialStoragePolicy()->
1091 RevokeRightsForExtension(extension); 1090 RevokeRightsForExtension(extension);
1092 1091
1093 ExtensionWebUI::UnregisterChromeURLOverrides( 1092 ExtensionWebUI::UnregisterChromeURLOverrides(
1094 profile_, extension->GetChromeURLOverrides()); 1093 profile_, extension->GetChromeURLOverrides());
1095 1094
1096 #if defined(OS_CHROMEOS) 1095 #if defined(OS_CHROMEOS)
1097 // Revoke external file access to 1096 // Revoke external file access to
1098 if (profile_->GetFileSystemContext() && 1097 if (profile_->GetFileSystemContext() &&
1099 profile_->GetFileSystemContext()->path_manager() && 1098 profile_->GetFileSystemContext()->external_provider()) {
1100 profile_->GetFileSystemContext()->path_manager()->external_provider()) { 1099 profile_->GetFileSystemContext()->external_provider()->
1101 profile_->GetFileSystemContext()->path_manager()->external_provider()->
1102 RevokeAccessForExtension(extension->id()); 1100 RevokeAccessForExtension(extension->id());
1103 } 1101 }
1104 1102
1105 if (extension->input_components().size() > 0) { 1103 if (extension->input_components().size() > 0) {
1106 ExtensionInputImeEventRouter::GetInstance()->UnregisterAllImes( 1104 ExtensionInputImeEventRouter::GetInstance()->UnregisterAllImes(
1107 profile_, extension->id()); 1105 profile_, extension->id());
1108 } 1106 }
1109 #endif 1107 #endif
1110 1108
1111 UpdateActiveExtensionsInCrashReporter(); 1109 UpdateActiveExtensionsInCrashReporter();
(...skipping 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after
2642 // 2640 //
2643 // To coexist with certain unit tests that don't have an IO thread message 2641 // To coexist with certain unit tests that don't have an IO thread message
2644 // loop available at ExtensionService shutdown, we lazy-initialize this 2642 // loop available at ExtensionService shutdown, we lazy-initialize this
2645 // object so that those cases neither create nor destroy a SocketController. 2643 // object so that those cases neither create nor destroy a SocketController.
2646 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 2644 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
2647 if (!socket_controller_) { 2645 if (!socket_controller_) {
2648 socket_controller_ = new extensions::SocketController(); 2646 socket_controller_ = new extensions::SocketController();
2649 } 2647 }
2650 return socket_controller_; 2648 return socket_controller_;
2651 } 2649 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698