Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / ios / chrome / browser / install_time_util.h
blob37285cfd83f33db6ae357d24f97d90efcf0c84ad
1 // Copyright 2013 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.
5 #ifndef IOS_CHROME_BROWSER_INSTALL_TIME_UTIL_H_
6 #define IOS_CHROME_BROWSER_INSTALL_TIME_UTIL_H_
8 #include "base/time/time.h"
10 namespace install_time_util {
12 extern const int64 kUnknownInstallDate;
14 // Computes the true installation time of the application based on the current
15 // install time stored in NSUserDefaults and whether or not this is a first run
16 // launch. This function will return a base::Time corresponding to
17 // |kUnknownInstallDate| if the true installation time is unknown.
18 base::Time ComputeInstallationTime(bool is_first_run);
20 // Internal implementation of |ComputeInstallationTime()|. Exposed only for
21 // testing.
22 base::Time ComputeInstallationTimeInternal(
23 bool is_first_run,
24 base::Time ns_user_defaults_install_time);
26 } // namespace install_time_util
28 #endif // IOS_CHROME_BROWSER_INSTALL_TIME_UTIL_H_