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

Unified Diff: chrome/browser/extensions/extension_data_deleter.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_data_deleter.cc
===================================================================
--- chrome/browser/extensions/extension_data_deleter.cc (revision 122721)
+++ chrome/browser/extensions/extension_data_deleter.cc (working copy)
@@ -23,6 +23,7 @@
#include "webkit/database/database_util.h"
#include "webkit/fileapi/file_system_context.h"
+using content::BrowserContext;
using content::BrowserThread;
// static
@@ -77,9 +78,9 @@
const GURL& storage_origin,
bool is_storage_isolated)
: extension_id_(extension_id) {
- appcache_service_ = profile->GetAppCacheService();
- webkit_context_ = profile->GetWebKitContext();
- database_tracker_ = profile->GetDatabaseTracker();
+ appcache_service_ = BrowserContext::GetAppCacheService(profile);
+ webkit_context_ = BrowserContext::GetWebKitContext(profile);
+ database_tracker_ = BrowserContext::GetDatabaseTracker(profile);
// Pick the right request context depending on whether it's an extension,
// isolated app, or regular app.
if (storage_origin.SchemeIs(chrome::kExtensionScheme)) {
@@ -92,7 +93,7 @@
} else {
extension_request_context_ = profile->GetRequestContext();
}
- file_system_context_ = profile->GetFileSystemContext();
+ file_system_context_ = BrowserContext::GetFileSystemContext(profile);
storage_origin_ = storage_origin;
origin_id_ =
webkit_database::DatabaseUtil::GetOriginIdentifier(storage_origin_);

Powered by Google App Engine
This is Rietveld 408576698