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

Unified Diff: chrome/browser/extensions/api/input/input.cc

Issue 216513002: Replace DCHECK(BrowserThread::CurrentlyOn) with DCHECK_CURRENTLY_ON in extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/extensions/api/input/input.cc
diff --git a/chrome/browser/extensions/api/input/input.cc b/chrome/browser/extensions/api/input/input.cc
index fcc5c7ec3e2b34b7d8db8f33153c81c2e7e0fa3b..1a18af77519a518ad11056e7be7d6d5d7900efc0 100644
--- a/chrome/browser/extensions/api/input/input.cc
+++ b/chrome/browser/extensions/api/input/input.cc
@@ -34,7 +34,7 @@ const char kNotYetImplementedError[] =
namespace extensions {
bool VirtualKeyboardPrivateInsertTextFunction::RunImpl() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
#if defined(USE_ASH)
base::string16 text;
EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &text));
@@ -47,7 +47,7 @@ bool VirtualKeyboardPrivateInsertTextFunction::RunImpl() {
}
bool VirtualKeyboardPrivateMoveCursorFunction::RunImpl() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
#if defined(USE_ASH)
if (!CommandLine::ForCurrentProcess()->HasSwitch(
keyboard::switches::kEnableSwipeSelection)) {
@@ -70,7 +70,7 @@ bool VirtualKeyboardPrivateMoveCursorFunction::RunImpl() {
}
bool VirtualKeyboardPrivateSendKeyEventFunction::RunImpl() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
#if defined(USE_ASH)
base::Value* options_value = NULL;
base::DictionaryValue* params = NULL;
@@ -102,7 +102,7 @@ bool VirtualKeyboardPrivateSendKeyEventFunction::RunImpl() {
}
bool VirtualKeyboardPrivateHideKeyboardFunction::RunImpl() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
#if defined(USE_ASH)
UMA_HISTOGRAM_ENUMERATION(
"VirtualKeyboard.KeyboardControlEvent",
@@ -122,7 +122,7 @@ bool VirtualKeyboardPrivateHideKeyboardFunction::RunImpl() {
}
bool VirtualKeyboardPrivateLockKeyboardFunction::RunImpl() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
#if defined(USE_ASH)
bool lock;
EXTENSION_FUNCTION_VALIDATE(args_->GetBoolean(0, &lock));
@@ -135,7 +135,7 @@ bool VirtualKeyboardPrivateLockKeyboardFunction::RunImpl() {
}
bool VirtualKeyboardPrivateKeyboardLoadedFunction::RunImpl() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
#if defined(USE_ASH)
keyboard::MarkKeyboardLoadFinished();
base::UserMetricsAction("VirtualKeyboardLoaded");
@@ -147,7 +147,7 @@ bool VirtualKeyboardPrivateKeyboardLoadedFunction::RunImpl() {
}
bool VirtualKeyboardPrivateGetKeyboardConfigFunction::RunImpl() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
#if defined(USE_ASH)
base::DictionaryValue* results = new base::DictionaryValue();
results->SetString("layout", keyboard::GetKeyboardLayout());

Powered by Google App Engine
This is Rietveld 408576698