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

Unified Diff: chrome/browser/android/chromium_application.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
« no previous file with comments | « no previous file | chrome/browser/android/cookies/cookies_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/chromium_application.cc
diff --git a/chrome/browser/android/chromium_application.cc b/chrome/browser/android/chromium_application.cc
index 7b5a5a6b896b3ae50cf6b43df1c9021f2ae453b5..8b98d4318b06030620dc09d08dc4b6a490fca161 100644
--- a/chrome/browser/android/chromium_application.cc
+++ b/chrome/browser/android/chromium_application.cc
@@ -29,7 +29,7 @@ namespace {
void FlushCookiesOnIOThread(
scoped_refptr<net::URLRequestContextGetter> getter) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
getter->GetURLRequestContext()
->cookie_store()
->GetCookieMonster()
@@ -50,7 +50,7 @@ void CommitPendingWritesForProfile(Profile* profile) {
void RemoveSessionCookiesOnIOThread(
scoped_refptr<net::URLRequestContextGetter> getter) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
getter->GetURLRequestContext()->cookie_store()->DeleteSessionCookiesAsync(
net::CookieStore::DeleteCallback());
}
@@ -64,7 +64,7 @@ void RemoveSessionCookiesForProfile(Profile* profile) {
void ChangeAppStatusOnIOThread(SafeBrowsingService* sb_service,
jboolean foreground) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
SafeBrowsingProtocolManager* proto_manager = sb_service->protocol_manager();
if (proto_manager)
proto_manager->SetAppInForeground(foreground);
« no previous file with comments | « no previous file | chrome/browser/android/cookies/cookies_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698