Listen in the browser for a connection from a metro viewer process.

Render to the surface it provides to us.

BUG=151718

Review URL: https://codereview.chromium.org/10984007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159559 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ui/aura/demo/demo_main.cc b/ui/aura/demo/demo_main.cc
index 6a6d43b5..e30b2e45 100644
--- a/ui/aura/demo/demo_main.cc
+++ b/ui/aura/demo/demo_main.cc
@@ -27,8 +27,6 @@
 #include "base/message_pump_aurax11.h"
 #endif
 
-extern int ViewerProcessMain();
-
 namespace {
 
 // Trivial WindowDelegate implementation that draws a colored background.
@@ -163,15 +161,6 @@
   return 0;
 }
 
-int RunMain() {
-  // TODO(scottmg): Something not crappy.
-  if (CommandLine::ForCurrentProcess()->HasSwitch("viewer")) {
-    return ViewerProcessMain();
-  } else {
-    return DemoMain();
-  }
-}
-
 }  // namespace
 
 int main(int argc, char** argv) {
@@ -184,5 +173,5 @@
   icu_util::Initialize();
   ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL);
 
-  return RunMain();
+  return DemoMain();
 }