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

Unified Diff: chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc

Issue 10919307: Move IndexedDBContext into the StoragePartition and ensure isolation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove useless include 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc
diff --git a/chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc b/chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc
index 823c48783377f2e35d6584683621272176b448a7..12588af711b0978b245a1a555a9984d7547ca126 100644
--- a/chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc
+++ b/chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc
@@ -13,13 +13,11 @@
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/browsing_data/browsing_data_helper.h"
-#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/indexed_db_context.h"
#include "webkit/database/database_util.h"
#include "webkit/glue/webkit_glue.h"
-using content::BrowserContext;
using content::BrowserThread;
using content::IndexedDBContext;
using webkit_database::DatabaseUtil;
@@ -28,7 +26,8 @@ namespace {
class BrowsingDataIndexedDBHelperImpl : public BrowsingDataIndexedDBHelper {
public:
- explicit BrowsingDataIndexedDBHelperImpl(Profile* profile);
+ explicit BrowsingDataIndexedDBHelperImpl(
+ IndexedDBContext* indexed_db_context);
virtual void StartFetching(
const base::Callback<void(const std::list<IndexedDBInfo>&)>&
@@ -68,8 +67,8 @@ class BrowsingDataIndexedDBHelperImpl : public BrowsingDataIndexedDBHelper {
};
BrowsingDataIndexedDBHelperImpl::BrowsingDataIndexedDBHelperImpl(
- Profile* profile)
- : indexed_db_context_(BrowserContext::GetIndexedDBContext(profile)),
+ IndexedDBContext* indexed_db_context)
+ : indexed_db_context_(indexed_db_context),
is_fetching_(false) {
DCHECK(indexed_db_context_.get());
}
@@ -151,8 +150,8 @@ BrowsingDataIndexedDBHelper::IndexedDBInfo::~IndexedDBInfo() {}
// static
BrowsingDataIndexedDBHelper* BrowsingDataIndexedDBHelper::Create(
- Profile* profile) {
- return new BrowsingDataIndexedDBHelperImpl(profile);
+ IndexedDBContext* indexed_db_context) {
+ return new BrowsingDataIndexedDBHelperImpl(indexed_db_context);
}
CannedBrowsingDataIndexedDBHelper::
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_indexed_db_helper.h ('k') | chrome/browser/extensions/data_deleter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698