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

Unified Diff: chrome/browser/extensions/api/cookies/cookies_api.cc

Issue 216513002: Replace DCHECK(BrowserThread::CurrentlyOn) with DCHECK_CURRENTLY_ON in extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: chrome/browser/extensions/api/cookies/cookies_api.cc
diff --git a/chrome/browser/extensions/api/cookies/cookies_api.cc b/chrome/browser/extensions/api/cookies/cookies_api.cc
index 2255a0931157b0fd5b122d8579317c911c824b45..78ff3d76dc07103c9219863a960b068efd3bd548 100644
--- a/chrome/browser/extensions/api/cookies/cookies_api.cc
+++ b/chrome/browser/extensions/api/cookies/cookies_api.cc
@@ -232,7 +232,7 @@ bool CookiesGetFunction::RunImpl() {
}
void CookiesGetFunction::GetCookieOnIOThread() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
net::CookieStore* cookie_store =
store_browser_context_->GetURLRequestContext()->cookie_store();
cookies_helpers::GetCookieListFromStore(
@@ -265,7 +265,7 @@ void CookiesGetFunction::GetCookieCallback(const net::CookieList& cookie_list) {
}
void CookiesGetFunction::RespondOnUIThread() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
SendResponse(true);
}
@@ -304,7 +304,7 @@ bool CookiesGetAllFunction::RunImpl() {
}
void CookiesGetAllFunction::GetAllCookiesOnIOThread() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
net::CookieStore* cookie_store =
store_browser_context_->GetURLRequestContext()->cookie_store();
cookies_helpers::GetCookieListFromStore(
@@ -330,7 +330,7 @@ void CookiesGetAllFunction::GetAllCookiesCallback(
}
void CookiesGetAllFunction::RespondOnUIThread() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
SendResponse(true);
}
@@ -368,7 +368,7 @@ bool CookiesSetFunction::RunImpl() {
}
void CookiesSetFunction::SetCookieOnIOThread() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
net::CookieMonster* cookie_monster =
store_browser_context_->GetURLRequestContext()
->cookie_store()
@@ -439,7 +439,7 @@ void CookiesSetFunction::PullCookieCallback(
}
void CookiesSetFunction::RespondOnUIThread() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (!success_) {
std::string name =
parsed_args_->details.name.get() ? *parsed_args_->details.name
@@ -484,7 +484,7 @@ bool CookiesRemoveFunction::RunImpl() {
}
void CookiesRemoveFunction::RemoveCookieOnIOThread() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
// Remove the cookie
net::CookieStore* cookie_store =
@@ -510,7 +510,7 @@ void CookiesRemoveFunction::RemoveCookieCallback() {
}
void CookiesRemoveFunction::RespondOnUIThread() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
SendResponse(true);
}

Powered by Google App Engine
This is Rietveld 408576698