| Index: chrome/browser/browsing_data_remover.cc
|
| ===================================================================
|
| --- chrome/browser/browsing_data_remover.cc (revision 126447)
|
| +++ chrome/browser/browsing_data_remover.cc (working copy)
|
| @@ -301,12 +301,11 @@
|
| }
|
| }
|
|
|
| - if (remove_mask & REMOVE_LOCAL_STORAGE &&
|
| - BrowserThread::IsMessageLoopValid(BrowserThread::WEBKIT_DEPRECATED)) {
|
| + if (remove_mask & REMOVE_LOCAL_STORAGE) {
|
| DOMStorageContext* context = BrowserContext::GetDOMStorageContext(profile_);
|
| - BrowserThread::PostTask(
|
| - BrowserThread::WEBKIT_DEPRECATED, FROM_HERE,
|
| - base::Bind(&BrowsingDataRemover::ClearDOMStorageOnWebKitThread,
|
| + context->task_runner()->PostTask(
|
| + FROM_HERE,
|
| + base::Bind(&BrowsingDataRemover::ClearDOMStorageInSequencedTask,
|
| base::Unretained(this), make_scoped_refptr(context)));
|
| }
|
|
|
| @@ -436,9 +435,10 @@
|
| return delete_begin_time - diff;
|
| }
|
|
|
| -void BrowsingDataRemover::ClearDOMStorageOnWebKitThread(
|
| - scoped_refptr<DOMStorageContext> dom_storage_context) {
|
| +void BrowsingDataRemover::ClearDOMStorageInSequencedTask(
|
| + DOMStorageContext* dom_storage_context) {
|
| // We assume the end time is now.
|
| + DCHECK(dom_storage_context->task_runner()->RunsTasksOnCurrentThread());
|
| dom_storage_context->DeleteDataModifiedSince(delete_begin_);
|
| }
|
|
|
|
|