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

Unified Diff: chrome/browser/devtools/device/adb/adb_device_info_query.cc

Issue 748513003: [DevTools] Removed newline from remote device model name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/devtools/device/adb/adb_device_info_query.cc
diff --git a/chrome/browser/devtools/device/adb/adb_device_info_query.cc b/chrome/browser/devtools/device/adb/adb_device_info_query.cc
index 2b44acd78ddcf8201e001891bba891ff40e813b0..14b2de6bc78015a08dae9dbcedeaeda57fce4442 100644
--- a/chrome/browser/devtools/device/adb/adb_device_info_query.cc
+++ b/chrome/browser/devtools/device/adb/adb_device_info_query.cc
@@ -208,7 +208,7 @@ void AdbDeviceInfoQuery::ReceivedModel(int result,
Respond();
return;
}
- device_info_.model = response;
+ TrimWhitespaceASCII(response, base::TRIM_ALL, &device_info_.model);
device_info_.connected = true;
command_callback_.Run(
kDumpsysCommand,
« 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