Index: chrome/browser/net/chrome_http_user_agent_settings.cc |
diff --git a/chrome/browser/net/chrome_http_user_agent_settings.cc b/chrome/browser/net/chrome_http_user_agent_settings.cc |
index dca7cfadf1234d2fb06e3ff373531e5319de3cef..73c0df8bddf95bd640e4ed299dd31577d4aeddbf 100644 |
--- a/chrome/browser/net/chrome_http_user_agent_settings.cc |
+++ b/chrome/browser/net/chrome_http_user_agent_settings.cc |
@@ -11,7 +11,7 @@ |
#include "net/http/http_util.h" |
ChromeHttpUserAgentSettings::ChromeHttpUserAgentSettings(PrefService* prefs) { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
pref_accept_language_.Init(prefs::kAcceptLanguages, prefs); |
last_pref_accept_language_ = *pref_accept_language_; |
last_http_accept_language_ = |
@@ -22,16 +22,16 @@ ChromeHttpUserAgentSettings::ChromeHttpUserAgentSettings(PrefService* prefs) { |
} |
ChromeHttpUserAgentSettings::~ChromeHttpUserAgentSettings() { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO); |
} |
void ChromeHttpUserAgentSettings::CleanupOnUIThread() { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
pref_accept_language_.Destroy(); |
} |
std::string ChromeHttpUserAgentSettings::GetAcceptLanguage() const { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO); |
std::string new_pref_accept_language = *pref_accept_language_; |
if (new_pref_accept_language != last_pref_accept_language_) { |
last_http_accept_language_ = |
@@ -42,7 +42,7 @@ std::string ChromeHttpUserAgentSettings::GetAcceptLanguage() const { |
} |
std::string ChromeHttpUserAgentSettings::GetUserAgent() const { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO); |
return ::GetUserAgent(); |
} |