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

Unified Diff: remoting/ios/app/app_initializer.cc

Issue 2937733003: [CRD iOS] Branching internal and external implementations (Closed)
Patch Set: Merge w/ ToT Created 3 years, 6 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: 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

Powered by Google App Engine
This is Rietveld 408576698