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

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

Issue 10836216: Add SiteInstance parameters to IndexedDBContext calls (Closed) Base URL: http://git.chromium.org/chromium/src.git@isolated-storage
Patch Set: Address ajwong's comments 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..f0a7af68cd48f62b55118e77a9f18f03a9275261 100644
--- a/chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc
+++ b/chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc
@@ -13,7 +13,6 @@
#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"
@@ -28,7 +27,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 +68,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 +151,8 @@ BrowsingDataIndexedDBHelper::IndexedDBInfo::~IndexedDBInfo() {}
// static
BrowsingDataIndexedDBHelper* BrowsingDataIndexedDBHelper::Create(
- Profile* profile) {
- return new BrowsingDataIndexedDBHelperImpl(profile);
+ IndexedDBContext* context) {
+ return new BrowsingDataIndexedDBHelperImpl(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