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

Unified Diff: chrome/browser/chromeos/events/event_rewriter.cc

Issue 677093002: Address EventRewriter Warning (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/events/event_rewriter.cc
diff --git a/chrome/browser/chromeos/events/event_rewriter.cc b/chrome/browser/chromeos/events/event_rewriter.cc
index 82111e2412ffc89eaa810f30caa1a6f1908980a6..2d051a55000dafbe1164e1a2306da6cd9386412c 100644
--- a/chrome/browser/chromeos/events/event_rewriter.cc
+++ b/chrome/browser/chromeos/events/event_rewriter.cc
@@ -955,7 +955,7 @@ EventRewriter::DeviceType EventRewriter::KeyboardDeviceAdded(int device_id) {
return kDeviceUnknown;
}
- DeviceType dev_type;
+ DeviceType dev_type = kDeviceUnknown;
DCHECK_EQ(1, ndevices_return);
for (int i = 0; i < ndevices_return; ++i) {
// Get keyboard product and vendor id.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698