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

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

Issue 18344013: fileapi: Rename FileSystemMountProvider to FileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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) 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 107 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
108 #include "sync/api/sync_change.h" 108 #include "sync/api/sync_change.h"
109 #include "sync/api/sync_error_factory.h" 109 #include "sync/api/sync_error_factory.h"
110 #include "ui/webui/web_ui_util.h" 110 #include "ui/webui/web_ui_util.h"
111 #include "url/gurl.h" 111 #include "url/gurl.h"
112 #include "webkit/browser/database/database_tracker.h" 112 #include "webkit/browser/database/database_tracker.h"
113 #include "webkit/browser/database/database_util.h" 113 #include "webkit/browser/database/database_util.h"
114 114
115 #if defined(OS_CHROMEOS) 115 #if defined(OS_CHROMEOS)
116 #include "chrome/browser/chromeos/extensions/install_limiter.h" 116 #include "chrome/browser/chromeos/extensions/install_limiter.h"
117 #include "webkit/browser/fileapi/file_system_backend.h"
117 #include "webkit/browser/fileapi/file_system_context.h" 118 #include "webkit/browser/fileapi/file_system_context.h"
118 #include "webkit/browser/fileapi/file_system_mount_point_provider.h"
119 #endif 119 #endif
120 120
121 using content::BrowserContext; 121 using content::BrowserContext;
122 using content::BrowserThread; 122 using content::BrowserThread;
123 using content::DevToolsAgentHost; 123 using content::DevToolsAgentHost;
124 using extensions::CrxInstaller; 124 using extensions::CrxInstaller;
125 using extensions::Extension; 125 using extensions::Extension;
126 using extensions::ExtensionIdSet; 126 using extensions::ExtensionIdSet;
127 using extensions::ExtensionInfo; 127 using extensions::ExtensionInfo;
128 using extensions::FeatureSwitch; 128 using extensions::FeatureSwitch;
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 1128
1129 #if defined(OS_CHROMEOS) 1129 #if defined(OS_CHROMEOS)
1130 // Revoke external file access for the extension from its file system context. 1130 // Revoke external file access for the extension from its file system context.
1131 // It is safe to access the extension's storage partition at this point. The 1131 // It is safe to access the extension's storage partition at this point. The
1132 // storage partition may get destroyed only after the extension gets unloaded. 1132 // storage partition may get destroyed only after the extension gets unloaded.
1133 GURL site = extensions::ExtensionSystem::Get(profile_)->extension_service()-> 1133 GURL site = extensions::ExtensionSystem::Get(profile_)->extension_service()->
1134 GetSiteForExtensionId(extension->id()); 1134 GetSiteForExtensionId(extension->id());
1135 fileapi::FileSystemContext* filesystem_context = 1135 fileapi::FileSystemContext* filesystem_context =
1136 BrowserContext::GetStoragePartitionForSite(profile_, site)-> 1136 BrowserContext::GetStoragePartitionForSite(profile_, site)->
1137 GetFileSystemContext(); 1137 GetFileSystemContext();
1138 if (filesystem_context && filesystem_context->external_provider()) { 1138 if (filesystem_context && filesystem_context->external_backend()) {
1139 filesystem_context->external_provider()-> 1139 filesystem_context->external_backend()->
1140 RevokeAccessForExtension(extension->id()); 1140 RevokeAccessForExtension(extension->id());
1141 } 1141 }
1142 #endif 1142 #endif
1143 1143
1144 UpdateActiveExtensionsInCrashReporter(); 1144 UpdateActiveExtensionsInCrashReporter();
1145 } 1145 }
1146 1146
1147 Profile* ExtensionService::profile() { 1147 Profile* ExtensionService::profile() {
1148 return profile_; 1148 return profile_;
1149 } 1149 }
(...skipping 1912 matching lines...) Expand 10 before | Expand all | Expand 10 after
3062 } 3062 }
3063 3063
3064 void ExtensionService::AddUpdateObserver(extensions::UpdateObserver* observer) { 3064 void ExtensionService::AddUpdateObserver(extensions::UpdateObserver* observer) {
3065 update_observers_.AddObserver(observer); 3065 update_observers_.AddObserver(observer);
3066 } 3066 }
3067 3067
3068 void ExtensionService::RemoveUpdateObserver( 3068 void ExtensionService::RemoveUpdateObserver(
3069 extensions::UpdateObserver* observer) { 3069 extensions::UpdateObserver* observer) {
3070 update_observers_.RemoveObserver(observer); 3070 update_observers_.RemoveObserver(observer);
3071 } 3071 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/component_loader.cc ('k') | chrome/browser/media_galleries/fileapi/device_media_async_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698