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

Unified Diff: remoting/host/host_main.cc

Issue 65813002: mac: Prepare most test code for -Wunused-functions too. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | « ppapi/tests/test_graphics_2d.cc ('k') | remoting/host/input_injector_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_main.cc
diff --git a/remoting/host/host_main.cc b/remoting/host/host_main.cc
index 512bc645ebfbeecaa26ea589eaa838afe46b3f52..75ce6fdfba8a25be507eb9794fbb19812efe3ffe 100644
--- a/remoting/host/host_main.cc
+++ b/remoting/host/host_main.cc
@@ -36,11 +36,13 @@
namespace remoting {
// Known entry points.
+int HostProcessMain();
+#if defined(OS_WIN)
int DaemonProcessMain();
int DesktopProcessMain();
int ElevatedControllerMain();
-int HostProcessMain();
int RdpDesktopSessionMain();
+#endif // defined(OS_WIN)
const char kElevateSwitchName[] = "elevate";
const char kProcessTypeSwitchName[] = "type";
@@ -126,29 +128,6 @@ int RunElevated() {
return kSuccessExitCode;
}
-#else // !defined(OS_WIN)
-
-// Fake entry points that exist only on Windows.
-int DaemonProcessMain() {
- NOTREACHED();
- return kInitializationFailed;
-}
-
-int DesktopProcessMain() {
- NOTREACHED();
- return kInitializationFailed;
-}
-
-int ElevatedControllerMain() {
- NOTREACHED();
- return kInitializationFailed;
-}
-
-int RdpDesktopSessionMain() {
- NOTREACHED();
- return kInitializationFailed;
-}
-
#endif // !defined(OS_WIN)
// Select the entry point corresponding to the process type.
« no previous file with comments | « ppapi/tests/test_graphics_2d.cc ('k') | remoting/host/input_injector_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698