summaryrefslogtreecommitdiffstats
path: root/extensions/shell
diff options
context:
space:
mode:
authormostynb <mostynb@opera.com>2015-03-25 14:39:39 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-25 21:40:24 +0000
commitf84bb8f4702438347971a24e964d7ee15c1702ef (patch)
tree1f1a32e27ebe2e94261e671f2eec03408a956717 /extensions/shell
parent16408c2845040574d5e458703f848aa04b2bb629 (diff)
downloadchromium_src-f84bb8f4702438347971a24e964d7ee15c1702ef.zip
chromium_src-f84bb8f4702438347971a24e964d7ee15c1702ef.tar.gz
chromium_src-f84bb8f4702438347971a24e964d7ee15c1702ef.tar.bz2
favor DCHECK_CURRENTLY_ON for better logs in extensions/
BUG=466848 Review URL: https://codereview.chromium.org/1032553009 Cr-Commit-Position: refs/heads/master@{#322238}
Diffstat (limited to 'extensions/shell')
-rw-r--r--extensions/shell/browser/shell_speech_recognition_manager_delegate.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/shell/browser/shell_speech_recognition_manager_delegate.cc b/extensions/shell/browser/shell_speech_recognition_manager_delegate.cc
index 7a96874..9fc2f65 100644
--- a/extensions/shell/browser/shell_speech_recognition_manager_delegate.cc
+++ b/extensions/shell/browser/shell_speech_recognition_manager_delegate.cc
@@ -72,7 +72,7 @@ void ShellSpeechRecognitionManagerDelegate::GetDiagnosticInformation(
void ShellSpeechRecognitionManagerDelegate::CheckRecognitionIsAllowed(
int session_id,
base::Callback<void(bool ask_user, bool is_allowed)> callback) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
const content::SpeechRecognitionSessionContext& context =
SpeechRecognitionManager::GetInstance()->GetSessionContext(session_id);
@@ -104,7 +104,7 @@ void ShellSpeechRecognitionManagerDelegate::CheckRenderViewType(
base::Callback<void(bool ask_user, bool is_allowed)> callback,
int render_process_id,
int render_view_id) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
const content::RenderViewHost* render_view_host =
content::RenderViewHost::FromID(render_process_id, render_view_id);
bool allowed = false;