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

Unified Diff: chrome/browser/sessions/session_data_deleter.cc

Issue 1106593002: [chrome/browser/se*-ss*] 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/sessions/session_data_deleter.cc
diff --git a/chrome/browser/sessions/session_data_deleter.cc b/chrome/browser/sessions/session_data_deleter.cc
index 2d6134d7bfb00369d62ad3bd80af21243a811188..046c87f22605d1876e6954735ae779314fc61e78 100644
--- a/chrome/browser/sessions/session_data_deleter.cc
+++ b/chrome/browser/sessions/session_data_deleter.cc
@@ -105,7 +105,7 @@ void SessionDataDeleter::ClearSessionOnlyLocalStorage(
void SessionDataDeleter::DeleteSessionCookiesOnIOThread(
ProfileIOData* profile_io_data) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
net::URLRequestContext* request_context =
profile_io_data->GetMainRequestContext();
cookie_monster_ = request_context->cookie_store()->GetCookieMonster();
@@ -142,7 +142,7 @@ void SessionDataDeleter::DeleteSessionOnlyOriginCookies(
} // namespace
void DeleteSessionOnlyData(Profile* profile) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
if (browser_shutdown::IsTryingToQuit())
return;
« no previous file with comments | « chrome/browser/sessions/base_session_service_delegate_impl.cc ('k') | chrome/browser/signin/signin_header_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698