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

Unified Diff: ios/chrome/browser/crash_report/crash_restore_helper.mm

Issue 2802763002: [ios] Cleanup SessionServiceIOS implementation. (Closed)
Patch Set: Address comments. Created 3 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/crash_report/crash_restore_helper_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/crash_report/crash_restore_helper.mm
diff --git a/ios/chrome/browser/crash_report/crash_restore_helper.mm b/ios/chrome/browser/crash_report/crash_restore_helper.mm
index 03d54937d6819f196af0f8d2105670c3ce835397..98d8754a104e50e1a91648e4183bbf704c69a776 100644
--- a/ios/chrome/browser/crash_report/crash_restore_helper.mm
+++ b/ios/chrome/browser/crash_report/crash_restore_helper.mm
@@ -20,7 +20,7 @@
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
#import "ios/chrome/browser/crash_report/breakpad_helper.h"
#include "ios/chrome/browser/sessions/ios_chrome_tab_restore_service_factory.h"
-#import "ios/chrome/browser/sessions/session_service.h"
+#import "ios/chrome/browser/sessions/session_service_ios.h"
#import "ios/chrome/browser/sessions/session_window_ios.h"
#import "ios/chrome/browser/tabs/tab.h"
#import "ios/chrome/browser/tabs/tab_model.h"
@@ -262,8 +262,7 @@ int SessionCrashedInfoBarDelegate::GetIconId() const {
_sessionRestored = YES;
_infoBarBridge.reset();
SessionWindowIOS* sessionWindow = [[SessionServiceIOS sharedService]
- loadWindowFromPath:[self sessionBackupPath]
- forBrowserState:[_tabModel browserState]];
+ loadWindowFromPath:[self sessionBackupPath]];
if (sessionWindow) {
breakpad_helper::WillStartCrashRestoration();
return [_tabModel restoreSessionWindow:sessionWindow];
@@ -285,8 +284,7 @@ int SessionCrashedInfoBarDelegate::GetIconId() const {
_sessionRestored = YES;
SessionWindowIOS* window = [[SessionServiceIOS sharedService]
- loadWindowFromPath:[self sessionBackupPath]
- forBrowserState:[_tabModel browserState]];
+ loadWindowFromPath:[self sessionBackupPath]];
DCHECK(window);
NSArray* sessions = window.sessions;
if (!sessions.count)
« no previous file with comments | « no previous file | ios/chrome/browser/crash_report/crash_restore_helper_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698