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

Unified Diff: ios/chrome/app/application_delegate/fake_startup_information.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
Index: ios/chrome/app/application_delegate/fake_startup_information.mm
diff --git a/ios/chrome/app/application_delegate/fake_startup_information.mm b/ios/chrome/app/application_delegate/fake_startup_information.mm
new file mode 100644
index 0000000000000000000000000000000000000000..2374800cf522c9b385265ba11119d364e583c173
--- /dev/null
+++ b/ios/chrome/app/application_delegate/fake_startup_information.mm
@@ -0,0 +1,65 @@
+// 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.
+
+#include "ios/chrome/app/application_delegate/fake_startup_information.h"
+
+#import "base/mac/scoped_nsobject.h"
+#include "base/time/time.h"
+#include "ios/chrome/browser/app_startup_parameters.h"
+
+@interface FakeStartupInformation () {
+ base::scoped_nsobject<AppStartupParameters> _startupParameters;
+}
+
+@end
+
+@implementation FakeStartupInformation
+
+@synthesize appLaunchTime = _appLaunchTime;
+@synthesize isPresentingFirstRunUI = _isPresentingFirstRunUI;
+@synthesize isColdStart = _isColdStart;
+
+- (AppStartupParameters*)startupParameters {
+ return _startupParameters;
+}
+
+- (void)setStartupParameters:(AppStartupParameters*)startupParameters {
+ _startupParameters.reset([startupParameters retain]);
+}
+
+- (FirstUserActionRecorder*)firstUserActionRecorder {
+ // Stub.
+ return nil;
+}
+
+- (void)resetFirstUserActionRecorder {
+ // Stub.
+}
+
+- (void)expireFirstUserActionRecorderAfterDelay:(NSTimeInterval)delay {
+ // Stub.
+}
+
+- (void)activateFirstUserActionRecorderWithBackgroundTime:
+ (NSTimeInterval)backgroundTime {
+ // Stub.
+}
+
+- (void)expireFirstUserActionRecorder {
+ // Stub.
+}
+
+- (void)launchFromURLHandled:(BOOL)URLHandled {
+ // Stub.
+}
+
+- (void)stopChromeMain {
+ // Stub.
+}
+
+- (void)startChromeMain {
+ // Stub.
+}
+
+@end
« no previous file with comments | « ios/chrome/app/application_delegate/fake_startup_information.h ('k') | ios/chrome/app/application_delegate/metrics_mediator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698