| Index: content/browser/browser_context.cc
|
| diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc
|
| index 62037b58a36f55f9a0b9949ec13ab11a5087a047..3262d7fa594e5e21aee66f1325167ae4400f29fd 100644
|
| --- a/content/browser/browser_context.cc
|
| +++ b/content/browser/browser_context.cc
|
| @@ -82,7 +82,7 @@ void SaveSessionStateOnIOThread(
|
| appcache_service->set_force_keep_session_state();
|
| }
|
|
|
| -void SaveSessionStateOnWebkitThread(
|
| +void SaveSessionStateOnIndexedDBThread(
|
| scoped_refptr<IndexedDBContextImpl> indexed_db_context) {
|
| indexed_db_context->SetForceKeepSessionState();
|
| }
|
| @@ -238,14 +238,12 @@ void BrowserContext::SaveSessionState(BrowserContext* browser_context) {
|
| storage_partition->GetDOMStorageContext());
|
| dom_storage_context_impl->SetForceKeepSessionState();
|
|
|
| - if (BrowserThread::IsMessageLoopValid(BrowserThread::WEBKIT_DEPRECATED)) {
|
| - IndexedDBContextImpl* indexed_db = static_cast<IndexedDBContextImpl*>(
|
| + IndexedDBContextImpl* indexed_db = static_cast<IndexedDBContextImpl*>(
|
| storage_partition->GetIndexedDBContext());
|
| - BrowserThread::PostTask(
|
| - BrowserThread::WEBKIT_DEPRECATED, FROM_HERE,
|
| - base::Bind(&SaveSessionStateOnWebkitThread,
|
| - make_scoped_refptr(indexed_db)));
|
| - }
|
| + indexed_db->TaskRunner()->PostTask(
|
| + FROM_HERE,
|
| + base::Bind(&SaveSessionStateOnIndexedDBThread,
|
| + make_scoped_refptr(indexed_db)));
|
| }
|
|
|
| void BrowserContext::PurgeMemory(BrowserContext* browser_context) {
|
|
|