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

Unified Diff: ios/chrome/app/steps/launch_to_basic.mm

Issue 2580363002: Upstream Chrome on iOS source code [1/11]. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « ios/chrome/app/steps/launch_to_basic.h ('k') | ios/chrome/app/steps/launch_to_foreground.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/app/steps/launch_to_basic.mm
diff --git a/ios/chrome/app/steps/launch_to_basic.mm b/ios/chrome/app/steps/launch_to_basic.mm
new file mode 100644
index 0000000000000000000000000000000000000000..e69d65c1d387e843ecab7b3ecddc2e5be3f7df21
--- /dev/null
+++ b/ios/chrome/app/steps/launch_to_basic.mm
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// ====== New Architecture =====
+// = This code is only used in the new iOS Chrome architecture. =
+// ============================================================================
+
+#import "ios/chrome/app/steps/launch_to_basic.h"
+
+#include "ios/chrome/app/application_state.h"
+#include "ios/chrome/app/startup/provider_registration.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+@implementation ProviderInitializer
+
+- (BOOL)canRunInState:(ApplicationState*)state {
+ return state.phase == APPLICATION_COLD;
+}
+
+- (void)runInState:(ApplicationState*)state {
+ [ProviderRegistration registerProviders];
+
+ state.phase = APPLICATION_BASIC;
+}
+
+@end
« no previous file with comments | « ios/chrome/app/steps/launch_to_basic.h ('k') | ios/chrome/app/steps/launch_to_foreground.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698