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

Unified Diff: media/base/keyboard_event_counter.cc

Issue 2577573002: Removes mouse listeners from UserInputMonitor. (Closed)
Patch Set: Fix win by removing std::move. Created 3 years, 11 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 | « media/base/keyboard_event_counter.h ('k') | media/base/keyboard_event_counter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/keyboard_event_counter.cc
diff --git a/media/base/keyboard_event_counter.cc b/media/base/keyboard_event_counter.cc
index 8432aec37e38171d0dd1ef24057d91a6af8d0dfd..c9947c7af763ebd7c36e43e22dfdf2f6c28434b6 100644
--- a/media/base/keyboard_event_counter.cc
+++ b/media/base/keyboard_event_counter.cc
@@ -13,12 +13,6 @@ KeyboardEventCounter::KeyboardEventCounter() : total_key_presses_(0) {}
KeyboardEventCounter::~KeyboardEventCounter() {}
-void KeyboardEventCounter::Reset() {
- pressed_keys_.clear();
- base::subtle::NoBarrier_Store(
- reinterpret_cast<base::subtle::AtomicWord*>(&total_key_presses_), 0);
-}
-
void KeyboardEventCounter::OnKeyboardEvent(ui::EventType event,
ui::KeyboardCode key_code) {
// Updates the pressed keys and the total count of key presses.
« no previous file with comments | « media/base/keyboard_event_counter.h ('k') | media/base/keyboard_event_counter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698