OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 6 #error "This file requires ARC support." |
| 7 #endif |
| 8 |
| 9 #import <UIKit/UIKit.h> |
| 10 |
| 11 #include "base/at_exit.h" |
| 12 #include "base/command_line.h" |
| 13 #import "remoting/client/ios/chromiumoting/app_delegate.h" |
| 14 |
| 15 int main(int argc, char* argv[]) { |
| 16 // This class is designed to fulfill the dependents needs when it goes out of |
| 17 // scope and gets destructed. |
| 18 base::AtExitManager exitManager; |
| 19 |
| 20 // Publicize the CommandLine. |
| 21 base::CommandLine::Init(argc, argv); |
| 22 |
| 23 #ifdef DEBUG |
| 24 // Set min log level for debug builds. For some reason this has to be |
| 25 // negative. |
| 26 logging::SetMinLogLevel(-1); |
| 27 #endif |
| 28 |
| 29 @autoreleasepool { |
| 30 return UIApplicationMain(argc, argv, nil, |
| 31 NSStringFromClass([AppDelegate class])); |
| 32 } |
| 33 } |
OLD | NEW |