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

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: Candidate patch 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..90ccf8c0da43c53c3d50c34dffe095e8936aa8a5 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,7 @@
#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_context.h"
awong 2012/09/10 21:55:21 Why do you need browser_context.h?
alecflett 2012/09/10 23:14:55 oops, don't now.
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/indexed_db_context.h"
#include "webkit/database/database_util.h"
@@ -28,7 +28,7 @@ namespace {
class BrowsingDataIndexedDBHelperImpl : public BrowsingDataIndexedDBHelper {
public:
- explicit BrowsingDataIndexedDBHelperImpl(Profile* profile);
+ explicit BrowsingDataIndexedDBHelperImpl(IndexedDBContext* context);
awong 2012/09/10 21:55:21 Call this indexed_db_context. Yeah it's long. :(
alecflett 2012/09/10 23:14:55 Done.
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* context)
+ : indexed_db_context_(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::

Powered by Google App Engine
This is Rietveld 408576698