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

Unified Diff: chrome/browser/media/media_device_id_salt.cc

Issue 1099803003: [chrome/browser/media] favor DCHECK_CURRENTLY_ON for better logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build issue 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/media/media_device_id_salt.cc
diff --git a/chrome/browser/media/media_device_id_salt.cc b/chrome/browser/media/media_device_id_salt.cc
index 27da539cd8aefd1ce2b72ed85fad9d37506b8707..3226c70f5da6bdfb7b3ac2686bde06fecc0e5c8f 100644
--- a/chrome/browser/media/media_device_id_salt.cc
+++ b/chrome/browser/media/media_device_id_salt.cc
@@ -25,7 +25,7 @@ std::string CreateSalt() {
MediaDeviceIDSalt::MediaDeviceIDSalt(PrefService* pref_service,
bool incognito) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (incognito) {
incognito_salt_ = CreateSalt();
@@ -44,13 +44,13 @@ MediaDeviceIDSalt::~MediaDeviceIDSalt() {
}
void MediaDeviceIDSalt::ShutdownOnUIThread() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (incognito_salt_.empty())
media_device_id_salt_.Destroy();
}
std::string MediaDeviceIDSalt::GetSalt() const {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (incognito_salt_.size())
return incognito_salt_;
return media_device_id_salt_.GetValue();
« no previous file with comments | « chrome/browser/media/media_capture_devices_dispatcher.cc ('k') | chrome/browser/media/media_stream_device_permissions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698