OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #import "ios/chrome/browser/metrics/previous_session_info.h" | 5 #import "ios/chrome/browser/metrics/previous_session_info.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
10 #include "components/version_info/version_info.h" | 10 #include "components/version_info/version_info.h" |
| 11 #import "ios/chrome/browser/metrics/previous_session_info_private.h" |
11 | 12 |
12 namespace { | 13 namespace { |
13 | 14 |
14 // Key in the NSUserDefaults for a string value that stores the version of the | 15 // Key in the NSUserDefaults for a string value that stores the version of the |
15 // last session. | 16 // last session. |
16 NSString* const kLastRanVersion = @"LastRanVersion"; | 17 NSString* const kLastRanVersion = @"LastRanVersion"; |
17 | 18 |
18 } // namespace | 19 } // namespace |
19 | 20 |
20 namespace previous_session_info_constants { | 21 namespace previous_session_info_constants { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 106 |
106 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; | 107 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
107 [defaults | 108 [defaults |
108 removeObjectForKey:previous_session_info_constants:: | 109 removeObjectForKey:previous_session_info_constants:: |
109 kDidSeeMemoryWarningShortlyBeforeTerminating]; | 110 kDidSeeMemoryWarningShortlyBeforeTerminating]; |
110 // Save critical state information for crash detection. | 111 // Save critical state information for crash detection. |
111 [defaults synchronize]; | 112 [defaults synchronize]; |
112 } | 113 } |
113 | 114 |
114 @end | 115 @end |
OLD | NEW |