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

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

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove useless headers. Created 8 years, 3 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) 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 #include "webkit/database/database_tracker.h" 114 #include "webkit/database/database_tracker.h"
115 #include "webkit/database/database_util.h" 115 #include "webkit/database/database_util.h"
116 #if defined(OS_CHROMEOS) 116 #if defined(OS_CHROMEOS)
117 #include "chrome/browser/chromeos/cros/cros_library.h" 117 #include "chrome/browser/chromeos/cros/cros_library.h"
118 #include "chrome/browser/chromeos/extensions/bluetooth_event_router.h" 118 #include "chrome/browser/chromeos/extensions/bluetooth_event_router.h"
119 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h" 119 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h"
120 #include "chrome/browser/chromeos/extensions/input_method_event_router.h" 120 #include "chrome/browser/chromeos/extensions/input_method_event_router.h"
121 #include "chrome/browser/chromeos/extensions/media_player_event_router.h" 121 #include "chrome/browser/chromeos/extensions/media_player_event_router.h"
122 #include "chrome/browser/chromeos/input_method/input_method_manager.h" 122 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
123 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" 123 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h"
124 #include "content/public/browser/storage_partition.h"
124 #include "webkit/fileapi/file_system_context.h" 125 #include "webkit/fileapi/file_system_context.h"
125 #include "webkit/fileapi/file_system_mount_point_provider.h" 126 #include "webkit/fileapi/file_system_mount_point_provider.h"
126 #endif 127 #endif
127 128
128 using content::BrowserContext; 129 using content::BrowserContext;
129 using content::BrowserThread; 130 using content::BrowserThread;
130 using content::DevToolsAgentHost; 131 using content::DevToolsAgentHost;
131 using content::DevToolsAgentHostRegistry; 132 using content::DevToolsAgentHostRegistry;
132 using content::PluginService; 133 using content::PluginService;
133 using extensions::CrxInstaller; 134 using extensions::CrxInstaller;
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 } 1101 }
1101 1102
1102 system_->UnregisterExtensionWithRequestContexts(extension->id(), reason); 1103 system_->UnregisterExtensionWithRequestContexts(extension->id(), reason);
1103 profile_->GetExtensionSpecialStoragePolicy()-> 1104 profile_->GetExtensionSpecialStoragePolicy()->
1104 RevokeRightsForExtension(extension); 1105 RevokeRightsForExtension(extension);
1105 1106
1106 ExtensionWebUI::UnregisterChromeURLOverrides( 1107 ExtensionWebUI::UnregisterChromeURLOverrides(
1107 profile_, extension->GetChromeURLOverrides()); 1108 profile_, extension->GetChromeURLOverrides());
1108 1109
1109 #if defined(OS_CHROMEOS) 1110 #if defined(OS_CHROMEOS)
1110 // Revoke external file access to 1111 // Revoke external file access to third party extensions.
1111 if (BrowserContext::GetFileSystemContext(profile_) && 1112 fileapi::FileSystemContext* filesystem_context =
1112 BrowserContext::GetFileSystemContext(profile_)->external_provider()) { 1113 BrowserContext::GetDefaultStoragePartition(profile_)->
1113 BrowserContext::GetFileSystemContext(profile_)->external_provider()-> 1114 GetFileSystemContext();
1115 if (filesystem_context && filesystem_context->external_provider()) {
1116 filesystem_context->external_provider()->
1114 RevokeAccessForExtension(extension->id()); 1117 RevokeAccessForExtension(extension->id());
1115 } 1118 }
1116 1119
1117 if (extension->input_components().size() > 0) { 1120 if (extension->input_components().size() > 0) {
1118 extensions::InputImeEventRouter::GetInstance()->UnregisterAllImes( 1121 extensions::InputImeEventRouter::GetInstance()->UnregisterAllImes(
1119 profile_, extension->id()); 1122 profile_, extension->id());
1120 } 1123 }
1121 #endif 1124 #endif
1122 1125
1123 UpdateActiveExtensionsInCrashReporter(); 1126 UpdateActiveExtensionsInCrashReporter();
(...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
2634 extensions::ExtensionHost* extension_host) { 2637 extensions::ExtensionHost* extension_host) {
2635 if (!extension_host) 2638 if (!extension_host)
2636 return; 2639 return;
2637 2640
2638 #if !defined(OS_ANDROID) 2641 #if !defined(OS_ANDROID)
2639 extensions::LaunchPlatformApp(extension_host->profile(), 2642 extensions::LaunchPlatformApp(extension_host->profile(),
2640 extension_host->extension(), 2643 extension_host->extension(),
2641 NULL, FilePath()); 2644 NULL, FilePath());
2642 #endif 2645 #endif
2643 } 2646 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/data_deleter.cc ('k') | chrome/browser/profiles/off_the_record_profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698