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

Unified Diff: ash/system/ime_menu/ime_list_view.cc

Issue 2805733002: [Ash] Use DCHECK in ImeListView::HandleButtonPressed() (Closed)
Patch Set: DCHECK_EQ Created 3 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
« no previous file with comments | « ash/system/ime/tray_ime_chromeos.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/ime_menu/ime_list_view.cc
diff --git a/ash/system/ime_menu/ime_list_view.cc b/ash/system/ime_menu/ime_list_view.cc
index 2fa68acd4e6b8de091af0eaad4f02ab9557f2354..98338116d83d945f49ad7e043c2da33586d8988d 100644
--- a/ash/system/ime_menu/ime_list_view.cc
+++ b/ash/system/ime_menu/ime_list_view.cc
@@ -309,11 +309,11 @@ void ImeListView::HandleViewClicked(views::View* view) {
void ImeListView::HandleButtonPressed(views::Button* sender,
const ui::Event& event) {
- if (keyboard_status_row_ && sender == keyboard_status_row_->toggle()) {
- ShellPort::Get()->ToggleIgnoreExternalKeyboard();
- last_selected_item_id_.clear();
- last_item_selected_with_keyboard_ = false;
- }
+ DCHECK_EQ(sender, keyboard_status_row_->toggle());
+
+ ShellPort::Get()->ToggleIgnoreExternalKeyboard();
+ last_selected_item_id_.clear();
+ last_item_selected_with_keyboard_ = false;
}
void ImeListView::VisibilityChanged(View* starting_from, bool is_visible) {
« no previous file with comments | « ash/system/ime/tray_ime_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698