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

Side by Side Diff: ios/chrome/browser/install_time_util.h

Issue 1544743002: Switch to standard integer types in ios/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_INSTALL_TIME_UTIL_H_ 5 #ifndef IOS_CHROME_BROWSER_INSTALL_TIME_UTIL_H_
6 #define IOS_CHROME_BROWSER_INSTALL_TIME_UTIL_H_ 6 #define IOS_CHROME_BROWSER_INSTALL_TIME_UTIL_H_
7 7
8 #include <stdint.h>
9
8 #include "base/time/time.h" 10 #include "base/time/time.h"
9 11
10 namespace install_time_util { 12 namespace install_time_util {
11 13
12 extern const int64 kUnknownInstallDate; 14 extern const int64_t kUnknownInstallDate;
13 15
14 // Computes the true installation time of the application based on the current 16 // 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 17 // 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 18 // launch. This function will return a base::Time corresponding to
17 // |kUnknownInstallDate| if the true installation time is unknown. 19 // |kUnknownInstallDate| if the true installation time is unknown.
18 base::Time ComputeInstallationTime(bool is_first_run); 20 base::Time ComputeInstallationTime(bool is_first_run);
19 21
20 // Internal implementation of |ComputeInstallationTime()|. Exposed only for 22 // Internal implementation of |ComputeInstallationTime()|. Exposed only for
21 // testing. 23 // testing.
22 base::Time ComputeInstallationTimeInternal( 24 base::Time ComputeInstallationTimeInternal(
23 bool is_first_run, 25 bool is_first_run,
24 base::Time ns_user_defaults_install_time); 26 base::Time ns_user_defaults_install_time);
25 27
26 } // namespace install_time_util 28 } // namespace install_time_util
27 29
28 #endif // IOS_CHROME_BROWSER_INSTALL_TIME_UTIL_H_ 30 #endif // IOS_CHROME_BROWSER_INSTALL_TIME_UTIL_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/infobars/infobar_manager_impl.h ('k') | ios/chrome/browser/install_time_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698