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

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

Issue 2937733003: [CRD iOS] Branching internal and external implementations (Closed)
Patch Set: Move some initialization code to AppDelegate 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/main.mm
diff --git a/remoting/ios/app/main.mm b/remoting/ios/app/main.mm
index 611fee9bc5f658ccd59990fe052aa88a53f1e819..1c7b02bea6b836837466e02807a1d8c37484c33b 100644
--- a/remoting/ios/app/main.mm
+++ b/remoting/ios/app/main.mm
@@ -10,10 +10,13 @@
#include "base/at_exit.h"
#include "base/command_line.h"
-#include "base/i18n/icu_util.h"
+
#import "remoting/ios/app/app_delegate.h"
+#import "remoting/ios/app/panel_view_controller_chromium.h"
int main(int argc, char* argv[]) {
+ // Changes here should be synced with the private main.mm in ios_internal.
+
// This class is designed to fulfill the dependents needs when it goes out of
// scope and gets destructed.
base::AtExitManager exitManager;
@@ -21,16 +24,9 @@ int main(int argc, char* argv[]) {
// Publicize the CommandLine.
base::CommandLine::Init(argc, argv);
- // Required to find the ICU data file, used by some file_util routines.
- base::i18n::InitializeICU();
-
-#ifdef DEBUG
- // Set min log level for debug builds. For some reason this has to be
- // negative.
- logging::SetMinLogLevel(-1);
-#endif
-
@autoreleasepool {
+ PanelViewControllerFactory.controllerClass =
+ PanelViewControllerChromium.class;
return UIApplicationMain(
argc, argv, nil, NSStringFromClass([AppDelegate class]));
}

Powered by Google App Engine
This is Rietveld 408576698