Chromium Code Reviews| 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:: |