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

Unified Diff: chrome/browser/android/cookies/cookies_fetcher.cc

Issue 1095243002: [chrome/browser/android] favor DCHECK_CURRENTLY_ON for better logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/android/cookies/cookies_fetcher.cc
diff --git a/chrome/browser/android/cookies/cookies_fetcher.cc b/chrome/browser/android/cookies/cookies_fetcher.cc
index 25f55e7f19332de261d280ea13e2ec36b7b889fb..8197f371d57e23477bf0a6dabdb10b33f56c1c96 100644
--- a/chrome/browser/android/cookies/cookies_fetcher.cc
+++ b/chrome/browser/android/cookies/cookies_fetcher.cc
@@ -49,7 +49,7 @@ void CookiesFetcher::PersistCookies(JNIEnv* env, jobject obj) {
void CookiesFetcher::PersistCookiesInternal(
net::URLRequestContextGetter* getter) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
net::CookieStore* store = getter->GetURLRequestContext()->cookie_store();
@@ -142,7 +142,7 @@ void CookiesFetcher::RestoreCookies(JNIEnv* env,
void CookiesFetcher::RestoreToCookieJarInternal(
net::URLRequestContextGetter* getter,
const net::CanonicalCookie& cookie) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
net::CookieStore* store = getter->GetURLRequestContext()->cookie_store();

Powered by Google App Engine
This is Rietveld 408576698