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

Unified Diff: chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc

Issue 1100293004: [chrome/browser/renderer_host] favor DCHECK_CURRENTLY_ON for better logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing changes 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/renderer_host/pepper/pepper_output_protection_message_filter.cc
diff --git a/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc b/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc
index b6d5b6a728711805d07a16785b826ae094a3b492..b999d075051d286de5d74a97bc2c41eeb0bbe285 100644
--- a/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc
+++ b/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc
@@ -66,7 +66,7 @@ static_assert(static_cast<int>(PP_OUTPUT_PROTECTION_METHOD_PRIVATE_HDCP) ==
"PP_OUTPUT_PROTECTION_METHOD_PRIVATE_HDCP value mismatch");
bool GetCurrentDisplayId(content::RenderFrameHost* rfh, int64* display_id) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
gfx::NativeView native_view = rfh->GetNativeView();
gfx::Screen* screen = gfx::Screen::GetScreenFor(native_view);
if (!screen)
@@ -144,11 +144,11 @@ PepperOutputProtectionMessageFilter::Delegate::Delegate(int render_process_id,
client_id_(ui::DisplayConfigurator::kInvalidClientId),
display_id_(0),
weak_ptr_factory_(this) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
}
PepperOutputProtectionMessageFilter::Delegate::~Delegate() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
ui::DisplayConfigurator* configurator =
ash::Shell::GetInstance()->display_configurator();
@@ -160,7 +160,7 @@ PepperOutputProtectionMessageFilter::Delegate::~Delegate() {
ui::DisplayConfigurator::ContentProtectionClientId
PepperOutputProtectionMessageFilter::Delegate::GetClientId() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
if (client_id_ == ui::DisplayConfigurator::kInvalidClientId) {
content::RenderFrameHost* rfh =
content::RenderFrameHost::FromID(render_process_id_, render_frame_id_);
@@ -183,7 +183,7 @@ PepperOutputProtectionMessageFilter::Delegate::GetClientId() {
void PepperOutputProtectionMessageFilter::Delegate::QueryStatus(
const QueryStatusCallback& callback) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
content::RenderFrameHost* rfh =
content::RenderFrameHost::FromID(render_process_id_, render_frame_id_);
@@ -205,7 +205,7 @@ void PepperOutputProtectionMessageFilter::Delegate::QueryStatus(
void PepperOutputProtectionMessageFilter::Delegate::EnableProtection(
uint32_t desired_method_mask,
const EnableProtectionCallback& callback) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
ui::DisplayConfigurator* configurator =
ash::Shell::GetInstance()->display_configurator();
@@ -294,7 +294,7 @@ PepperOutputProtectionMessageFilter::PepperOutputProtectionMessageFilter(
PP_Instance instance)
: weak_ptr_factory_(this) {
#if defined(OS_CHROMEOS)
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
int render_process_id = 0;
int render_frame_id = 0;
host->GetRenderFrameIDsForInstance(

Powered by Google App Engine
This is Rietveld 408576698