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

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

Issue 8202003: IndexedDB: Update calls to and implementations of WebIDBFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 2 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_dispatcher_host.cc
diff --git a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
index ce9211c7e1bbc35ee0a3232d208ddf4474fa53fd..747a856555bbf5e6b100dd0c10455e01af9847ac 100644
--- a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
+++ b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
@@ -210,21 +210,9 @@ void IndexedDBDispatcherHost::OnIDBFactoryGetDatabaseNames(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT));
- WebKit::WebIDBFactory::BackingStoreType backingStoreType =
- WebKit::WebIDBFactory::LevelDBBackingStore;
-
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kSQLiteIndexedDatabase)) {
- backingStoreType = WebKit::WebIDBFactory::SQLiteBackingStore;
- }
-
- // TODO(dgrogan): Delete this magic constant once we've removed sqlite.
- static const uint64 kIncognitoSqliteBackendQuota = 50 * 1024 * 1024;
-
Context()->GetIDBFactory()->getDatabaseNames(
new IndexedDBCallbacks<WebDOMStringList>(this, params.response_id),
- origin, NULL, webkit_glue::FilePathToWebString(indexed_db_path),
- kIncognitoSqliteBackendQuota, backingStoreType);
+ origin, NULL, webkit_glue::FilePathToWebString(indexed_db_path));
}
void IndexedDBDispatcherHost::OnIDBFactoryOpen(
@@ -247,25 +235,13 @@ void IndexedDBDispatcherHost::OnIDBFactoryOpen(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT));
- WebKit::WebIDBFactory::BackingStoreType backingStoreType =
- WebKit::WebIDBFactory::LevelDBBackingStore;
-
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kSQLiteIndexedDatabase)) {
- backingStoreType = WebKit::WebIDBFactory::SQLiteBackingStore;
- }
-
- // TODO(dgrogan): Delete this magic constant once we've removed sqlite.
- static const uint64 kIncognitoSqliteBackendQuota = 50 * 1024 * 1024;
-
// TODO(dgrogan): Don't let a non-existing database be opened (and therefore
// created) if this origin is already over quota.
Context()->GetIDBFactory()->open(
params.name,
new IndexedDBCallbacks<WebIDBDatabase>(this, params.response_id,
origin_url),
- origin, NULL, webkit_glue::FilePathToWebString(indexed_db_path),
- kIncognitoSqliteBackendQuota, backingStoreType);
+ origin, NULL, webkit_glue::FilePathToWebString(indexed_db_path));
}
void IndexedDBDispatcherHost::OnIDBFactoryDeleteDatabase(
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_browsertest.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698