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

Unified Diff: remoting/host/host_details.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: Add resources_android.cc 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
« no previous file with comments | « remoting/host/disconnect_window_android.cc ('k') | remoting/host/input_injector_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_details.cc
diff --git a/remoting/host/host_details.cc b/remoting/host/host_details.cc
index 9c9c4e97718af7055173329125a23f802ed93c3f..43493429d8859aa00124cc3287c222565a625cff 100644
--- a/remoting/host/host_details.cc
+++ b/remoting/host/host_details.cc
@@ -24,16 +24,20 @@ std::string GetHostOperatingSystemName() {
return "ChromeOS";
#elif defined(OS_LINUX)
return "Linux";
+#elif defined(OS_ANDROID)
+ return "Android";
+#else
+#error "Unsupported host OS"
#endif
}
// Get the host Operating System Version, removing the need to check for OS
// definitions and keeps the format used consistant.
std::string GetHostOperatingSystemVersion() {
-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS)
- return base::SysInfo::OperatingSystemVersion();
-#elif defined(OS_LINUX)
+#if defined(OS_LINUX)
return base::GetLinuxDistro();
+#else
+ return base::SysInfo::OperatingSystemVersion();
#endif
}
« no previous file with comments | « remoting/host/disconnect_window_android.cc ('k') | remoting/host/input_injector_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698