|
[ios] Cleanup SessionServiceIOS implementation.
Before refactoring of SessionServiceIOS to make it easier to unit
test and to share with the new architecture, clean up legacy code.
- Rename the files session_service{ => _ios}.{h,mm} to follow
the convention of naming the files after the class defined.
- Remove custom NSKeyedUnarchiver subclass SessionWindowUnarchiver
as the additional property browserState is no longer and use a
category of NSKeyedUnarchiver to define the method to register
the aliases to load legacy saved session files.
- Convert the code to ARC and merge "unit_tests_non_arc" target
with "unit_tests" target as they both use ARC.
- Reformat logged error messages, ensure that they include the
path of the file or directory they apply to.
- Use base::MakeCriticalClosure to prevent Chrome from suspending
instead of using -beginBackgroundTaskWithExpirationHandler (the
CriticalClosure code use the same functionality, but is shared
code).
- Remove SessionWindowIOS -clearSession as the method is no longer
useful (obsolete).
- Use lightweight generics and remove casts.
- Remove obsolete #includes.
BUG=None
Review-Url: https://codereview.chromium.org/2802763002
Cr-Commit-Position: refs/heads/master@{#462527}
Committed: https://chromium.googlesource.com/chromium/src/+/da974c8881efb5c372206a5ac86ad807c0dbd931
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+91 lines, -693 lines) |
Patch |
|
M |
ios/chrome/browser/crash_report/crash_restore_helper.mm
|
View
|
|
3 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/crash_report/crash_restore_helper_unittest.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ios/chrome/browser/sessions/BUILD.gn
|
View
|
|
4 chunks |
+5 lines, -19 lines |
0 comments
|
Download
|
|
D |
ios/chrome/browser/sessions/session_service.h
|
View
|
|
1 chunk |
+0 lines, -80 lines |
0 comments
|
Download
|
|
D |
ios/chrome/browser/sessions/session_service.mm
|
View
|
|
1 chunk |
+0 lines, -279 lines |
0 comments
|
Download
|
|
A + |
ios/chrome/browser/sessions/session_service_ios.h
|
View
|
|
3 chunks |
+4 lines, -22 lines |
0 comments
|
Download
|
|
A + |
ios/chrome/browser/sessions/session_service_ios.mm
|
View
|
1
|
10 chunks |
+71 lines, -98 lines |
0 comments
|
Download
|
|
A + |
ios/chrome/browser/sessions/session_service_ios_unittest.mm
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
D |
ios/chrome/browser/sessions/session_service_unittest.mm
|
View
|
|
1 chunk |
+0 lines, -162 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/sessions/session_util.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ios/chrome/browser/sessions/session_window_ios.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/sessions/session_window_ios.mm
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/sessions/session_window_ios_unittest.mm
|
View
|
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/sessions/test_session_service.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ios/chrome/browser/tabs/tab_model.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ios/chrome/browser/test/perf_test_with_bvc_ios.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ios/chrome/browser/ui/main/browser_view_wrangler.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Depends on Patchset:
Dependent Patchsets:
Total messages: 18 (12 generated)
|