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

Unified Diff: remoting/host/username.cc

Issue 1863933002: [remoting android] Add and build host code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android-host-add-native
Patch Set: Created 4 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
Index: remoting/host/username.cc
diff --git a/remoting/host/username.cc b/remoting/host/username.cc
index 712a1555e473f2803a60c3e2c55fffa974d16443..507c8e15274d046c4e99a2188a2e9cc331e12389 100644
--- a/remoting/host/username.cc
+++ b/remoting/host/username.cc
@@ -18,7 +18,9 @@
namespace remoting {
std::string GetUsername() {
-#if defined(OS_POSIX)
+#if defined(OS_ANDROID)
+ return std::string();
Sergey Ulanov 2016/04/07 00:56:14 I don't think you need to separate this from the c
Lambros 2016/04/12 21:58:04 Done.
+#elif defined(OS_POSIX)
long buf_size = sysconf(_SC_GETPW_R_SIZE_MAX);
if (buf_size <= 0)
return std::string();

Powered by Google App Engine
This is Rietveld 408576698