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

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

Issue 8879013: Deprecate WEBKIT thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update after rebase Created 9 years 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/webkit_context.cc
diff --git a/content/browser/in_process_webkit/webkit_context.cc b/content/browser/in_process_webkit/webkit_context.cc
index 6dfa897c2fc64209e03d57462ed6a8cc6e268eb7..f1cb1da7072e0272c9412fc56db3520d16b0afd4 100644
--- a/content/browser/in_process_webkit/webkit_context.cc
+++ b/content/browser/in_process_webkit/webkit_context.cc
@@ -36,7 +36,7 @@ WebKitContext::~WebKitContext() {
clear_local_state_on_exit_);
DOMStorageContext* dom_storage_context = dom_storage_context_.release();
if (!BrowserThread::DeleteSoon(
- BrowserThread::WEBKIT, FROM_HERE, dom_storage_context)) {
+ BrowserThread::WEBKIT_DEPRECATED, FROM_HERE, dom_storage_context)) {
// The WebKit thread wasn't created, and the task got deleted without
// freeing the DOMStorageContext, so delete it manually.
delete dom_storage_context;
@@ -47,9 +47,9 @@ WebKitContext::~WebKitContext() {
}
void WebKitContext::PurgeMemory() {
- if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)) {
+ if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED)) {
BrowserThread::PostTask(
- BrowserThread::WEBKIT, FROM_HERE,
+ BrowserThread::WEBKIT_DEPRECATED, FROM_HERE,
base::Bind(&WebKitContext::PurgeMemory, this));
return;
}
@@ -58,9 +58,9 @@ void WebKitContext::PurgeMemory() {
}
void WebKitContext::DeleteDataModifiedSince(const base::Time& cutoff) {
- if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)) {
+ if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED)) {
BrowserThread::PostTask(
- BrowserThread::WEBKIT, FROM_HERE,
+ BrowserThread::WEBKIT_DEPRECATED, FROM_HERE,
base::Bind(&WebKitContext::DeleteDataModifiedSince, this, cutoff));
return;
}
@@ -70,9 +70,9 @@ void WebKitContext::DeleteDataModifiedSince(const base::Time& cutoff) {
void WebKitContext::DeleteSessionStorageNamespace(
int64 session_storage_namespace_id) {
- if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)) {
+ if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED)) {
BrowserThread::PostTask(
- BrowserThread::WEBKIT, FROM_HERE,
+ BrowserThread::WEBKIT_DEPRECATED, FROM_HERE,
base::Bind(&WebKitContext::DeleteSessionStorageNamespace, this,
session_storage_namespace_id));
return;
@@ -83,9 +83,9 @@ void WebKitContext::DeleteSessionStorageNamespace(
}
void WebKitContext::SaveSessionState() {
- if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)) {
+ if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED)) {
BrowserThread::PostTask(
- BrowserThread::WEBKIT, FROM_HERE,
+ BrowserThread::WEBKIT_DEPRECATED, FROM_HERE,
base::Bind(&WebKitContext::SaveSessionState, this));
return;
}

Powered by Google App Engine
This is Rietveld 408576698