Index: remoting/ios/app/app_initializer.cc |
diff --git a/remoting/ios/app/main.mm b/remoting/ios/app/app_initializer.cc |
similarity index 52% |
copy from remoting/ios/app/main.mm |
copy to remoting/ios/app/app_initializer.cc |
index 611fee9bc5f658ccd59990fe052aa88a53f1e819..98c6a3f5c3326170d45684bf3884c185ee2a3ba2 100644 |
--- a/remoting/ios/app/main.mm |
+++ b/remoting/ios/app/app_initializer.cc |
@@ -2,22 +2,14 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#if !defined(__has_feature) || !__has_feature(objc_arc) |
-#error "This file requires ARC support." |
-#endif |
- |
-#import <UIKit/UIKit.h> |
+#include "remoting/ios/app/app_initializer.h" |
-#include "base/at_exit.h" |
#include "base/command_line.h" |
#include "base/i18n/icu_util.h" |
-#import "remoting/ios/app/app_delegate.h" |
-int main(int argc, char* argv[]) { |
- // This class is designed to fulfill the dependents needs when it goes out of |
- // scope and gets destructed. |
- base::AtExitManager exitManager; |
+namespace remoting { |
+void InitializeIosClient(int argc, char* argv[]) { |
// Publicize the CommandLine. |
base::CommandLine::Init(argc, argv); |
@@ -29,9 +21,6 @@ int main(int argc, char* argv[]) { |
// negative. |
logging::SetMinLogLevel(-1); |
#endif |
- |
- @autoreleasepool { |
- return UIApplicationMain( |
- argc, argv, nil, NSStringFromClass([AppDelegate class])); |
- } |
} |
+ |
+} // namespace remoting |