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

Unified Diff: chrome/browser/extensions/extension_service.cc

Issue 9419033: Move creation of BrowserContext objects that live in content to content, instead of depending on th… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix memory leaks in tests Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_service.cc
===================================================================
--- chrome/browser/extensions/extension_service.cc (revision 122721)
+++ chrome/browser/extensions/extension_service.cc (working copy)
@@ -120,6 +120,7 @@
#endif
using base::Time;
+using content::BrowserContext;
using content::BrowserThread;
using content::DevToolsAgentHost;
using content::DevToolsAgentHostRegistry;
@@ -1136,9 +1137,9 @@
#if defined(OS_CHROMEOS)
// Revoke external file access to
- if (profile_->GetFileSystemContext() &&
- profile_->GetFileSystemContext()->external_provider()) {
- profile_->GetFileSystemContext()->external_provider()->
+ if (BrowserContext::GetFileSystemContext(profile_) &&
+ BrowserContext::GetFileSystemContext(profile_)->external_provider()) {
+ BrowserContext::GetFileSystemContext(profile_)->external_provider()->
RevokeAccessForExtension(extension->id());
}

Powered by Google App Engine
This is Rietveld 408576698