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

Unified Diff: remoting/base/util.h

Issue 13312005: Don't use $USER for Local Login check (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | remoting/base/util.cc » ('j') | remoting/base/util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/util.h
diff --git a/remoting/base/util.h b/remoting/base/util.h
index e6abe0fa98c54441170e8582e8586e8b9fe620b2..7c5351b6979ccddb61f4225867028a79d0863207 100644
--- a/remoting/base/util.h
+++ b/remoting/base/util.h
@@ -92,6 +92,13 @@ std::string ReplaceCrLfByLf(const std::string& in);
// Checks if the given string is a valid UTF-8 string.
bool StringIsUtf8(const char* data, size_t length);
+// Returns true if GetUsername() is implemented on this platform.
+bool CanGetUsername();
Wez 2013/03/29 17:27:57 Semantically there's no difference between this no
Lambros 2013/03/29 19:30:22 Done.
+
+// Returns the username associated with this process, or the empty string on
+// error.
+std::string GetUsername();
+
} // namespace remoting
#endif // REMOTING_BASE_UTIL_H_
« no previous file with comments | « no previous file | remoting/base/util.cc » ('j') | remoting/base/util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698