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

Unified Diff: components/autofill/content/browser/wallet/wallet_signin_helper.cc

Issue 1043013002: favor DCHECK_CURRENTLY_ON for better logs in components/ (part 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content namespace needed after all 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 | components/crash/browser/crash_dump_manager_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/browser/wallet/wallet_signin_helper.cc
diff --git a/components/autofill/content/browser/wallet/wallet_signin_helper.cc b/components/autofill/content/browser/wallet/wallet_signin_helper.cc
index fc9b66fad232324382dc2e8bd413d442438ccc55..92a228db94c9eee39d6767f9012bc151569da65f 100644
--- a/components/autofill/content/browser/wallet/wallet_signin_helper.cc
+++ b/components/autofill/content/browser/wallet/wallet_signin_helper.cc
@@ -38,7 +38,7 @@ const char kWalletCookieName[] = "gdtoken";
void GetGoogleCookiesCallback(
const base::Callback<void(const std::string&)>& callback,
const net::CookieList& cookies) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
// Cookies for parent domains will also be returned; we only want cookies with
// exact host matches. TODO(estade): really?
@@ -62,7 +62,7 @@ void GetGoogleCookiesCallback(
void GetGoogleCookies(
scoped_refptr<net::URLRequestContextGetter> request_context_getter,
const base::Callback<void(const std::string&)>& callback) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
net::URLRequestContext* url_request_context =
request_context_getter->GetURLRequestContext();
@@ -166,7 +166,7 @@ void WalletSigninHelper::OnURLFetchComplete(
void WalletSigninHelper::ReturnWalletCookieValue(
const std::string& cookie_value) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
delegate_->OnDidFetchWalletCookieValue(cookie_value);
}
« no previous file with comments | « no previous file | components/crash/browser/crash_dump_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698