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

Unified Diff: content/browser/in_process_webkit/indexed_db_context_impl.cc

Issue 9467016: Get rid of WebKitContext. Only two out of six HTML5 related objects were in it and it was just a gl… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix bug 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: content/browser/in_process_webkit/indexed_db_context_impl.cc
===================================================================
--- content/browser/in_process_webkit/indexed_db_context_impl.cc (revision 123509)
+++ content/browser/in_process_webkit/indexed_db_context_impl.cc (working copy)
@@ -12,8 +12,6 @@
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "content/browser/in_process_webkit/indexed_db_quota_client.h"
-#include "content/browser/in_process_webkit/webkit_context.h"
-#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_switches.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h"
@@ -26,7 +24,6 @@
#include "webkit/quota/quota_manager.h"
#include "webkit/quota/special_storage_policy.h"
-using content::BrowserContext;
using content::BrowserThread;
using content::IndexedDBContext;
using webkit_database::DatabaseUtil;
@@ -91,13 +88,8 @@
} // namespace
-IndexedDBContext* IndexedDBContext::GetForBrowserContext(
- BrowserContext* context) {
- return BrowserContext::GetWebKitContext(context)->indexed_db_context();
-}
-
IndexedDBContextImpl::IndexedDBContextImpl(
- WebKitContext* webkit_context,
+ const FilePath& data_path,
quota::SpecialStoragePolicy* special_storage_policy,
quota::QuotaManagerProxy* quota_manager_proxy,
base::MessageLoopProxy* webkit_thread_loop)
@@ -105,8 +97,8 @@
save_session_state_(false),
special_storage_policy_(special_storage_policy),
quota_manager_proxy_(quota_manager_proxy) {
- if (!webkit_context->is_incognito())
- data_path_ = webkit_context->data_path().Append(kIndexedDBDirectory);
+ if (!data_path.empty())
+ data_path_ = data_path.Append(kIndexedDBDirectory);
if (quota_manager_proxy &&
!CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess)) {
quota_manager_proxy->RegisterClient(

Powered by Google App Engine
This is Rietveld 408576698