OLD | NEW |
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 #include "ios/chrome/browser/install_time_util.h" | 5 #include "ios/chrome/browser/install_time_util.h" |
6 | 6 |
7 #include <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
11 | 11 |
12 #if !defined(__has_feature) || !__has_feature(objc_arc) | 12 #if !defined(__has_feature) || !__has_feature(objc_arc) |
13 #error "This file requires ARC support." | 13 #error "This file requires ARC support." |
14 #endif | 14 #endif |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 if (is_first_run) | 49 if (is_first_run) |
50 return base::Time::Now(); | 50 return base::Time::Now(); |
51 | 51 |
52 if (ns_user_defaults_install_time.is_null()) | 52 if (ns_user_defaults_install_time.is_null()) |
53 return base::Time::FromTimeT(kUnknownInstallDate); | 53 return base::Time::FromTimeT(kUnknownInstallDate); |
54 | 54 |
55 return ns_user_defaults_install_time; | 55 return ns_user_defaults_install_time; |
56 } | 56 } |
57 | 57 |
58 } // namespace install_time_util | 58 } // namespace install_time_util |
OLD | NEW |