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

Unified Diff: ui/events/devices/mojo/input_device_struct_traits.cc

Issue 2100893002: Add tests for InputDevice/TouchscreenDevice StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win. Created 4 years, 6 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 | « ui/events/devices/mojo/input_device_struct_traits.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/devices/mojo/input_device_struct_traits.cc
diff --git a/ui/events/devices/mojo/input_device_struct_traits.cc b/ui/events/devices/mojo/input_device_struct_traits.cc
index afab8208d5c42f1df702a70bbac4678a8d1c00b3..8d5a9f60af37c13a8b8971b71c89966dbc19f462 100644
--- a/ui/events/devices/mojo/input_device_struct_traits.cc
+++ b/ui/events/devices/mojo/input_device_struct_traits.cc
@@ -55,7 +55,7 @@ bool StructTraits<ui::mojom::InputDevice, ui::InputDevice>::Read(
if (!data.ReadName(&out->name))
return false;
- base::StringPiece sys_path_string;
+ std::string sys_path_string;
if (!data.ReadSysPath(&sys_path_string))
return false;
out->sys_path = base::FilePath::FromUTF8Unsafe(sys_path_string);
« no previous file with comments | « ui/events/devices/mojo/input_device_struct_traits.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698