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

Unified Diff: remoting/client/ios/main.mm

Issue 1763783002: Staging an example iOS project to be the dummy target for CRD iOS App. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated the example to use the opengl wrapper and minor cleanup. Created 4 years, 9 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/client/ios/main.mm
diff --git a/remoting/client/ios/main.mm b/remoting/client/ios/main.mm
new file mode 100644
index 0000000000000000000000000000000000000000..f436a74d804127417b2076839892c6045496c52d
--- /dev/null
+++ b/remoting/client/ios/main.mm
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
Lambros 2016/03/16 00:22:11 2016
+// 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 "base/at_exit.h"
+#include "base/command_line.h"
+#import "remoting/client/ios/app_delegate.h"
+
+int main(int argc, char* argv[]) {
+ // This class is designed to fulfill the dependents needs when it goes out of
Lambros 2016/03/16 00:22:11 Feel free to remove all these comments if you like
+ // scope and gets destructed.
+ base::AtExitManager exitManager;
+
+ // Publicize the CommandLine.
+ base::CommandLine::Init(argc, argv);
+
+#ifdef DEBUG
+ // Set min log level for debug builds. For some reason this has to be
+ // negative.
+ logging::SetMinLogLevel(-1);
+#endif
+
+ @autoreleasepool {
+ return UIApplicationMain(
+ argc, argv, nil, NSStringFromClass([AppDelegate class]));
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698