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

Unified Diff: base/win/win_util.h

Issue 7740055: Set user-visible machine names and devices types for synced sessions. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Split off platform-specific code to various util files, addressed comments Created 9 years, 4 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: base/win/win_util.h
diff --git a/base/win/win_util.h b/base/win/win_util.h
index 2227dfd91c2446cf10b41f5a3c8ecba839e00352..0bb229758ce441acb9af5db0390540a2cd2955b2 100644
--- a/base/win/win_util.h
+++ b/base/win/win_util.h
@@ -59,6 +59,9 @@ BASE_EXPORT bool IsCtrlPressed();
// Returns true if the alt key is currently pressed.
BASE_EXPORT bool IsAltPressed();
+// Returns the computer name or the empty string an error occurred.
+BASE_EXPORT std::string GetComputerName();
+
// Returns false if user account control (UAC) has been disabled with the
// EnableLUA registry flag. Returns true if user account control is enabled.
// NOTE: The EnableLUA registry flag, which is ignored on Windows XP

Powered by Google App Engine
This is Rietveld 408576698