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

Unified Diff: ios/chrome/browser/sessions/test_session_service.mm

Issue 2811593004: [ios] Allow having multiple session windows in a session. (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 | « ios/chrome/browser/sessions/session_window_ios.h ('k') | ios/chrome/browser/tabs/tab_model.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/sessions/test_session_service.mm
diff --git a/ios/chrome/browser/sessions/test_session_service.mm b/ios/chrome/browser/sessions/test_session_service.mm
index cd2566790e12716b7cfdcb73736dbf4cfd14b679..34f61ede568307c17594954dabf9b54475a01e61 100644
--- a/ios/chrome/browser/sessions/test_session_service.mm
+++ b/ios/chrome/browser/sessions/test_session_service.mm
@@ -19,11 +19,11 @@
return [super initWithTaskRunner:base::ThreadTaskRunnerHandle::Get()];
}
-- (void)saveSessionWindow:(SessionWindowIOS*)sessionWindow
- directory:(NSString*)directory
- immediately:(BOOL)immediately {
+- (void)saveSession:(SessionIOS*)session
+ directory:(NSString*)directory
+ immediately:(BOOL)immediately {
NSString* sessionPath = [[self class] sessionPathForDirectory:directory];
- NSData* data = [NSKeyedArchiver archivedDataWithRootObject:sessionWindow];
+ NSData* data = [NSKeyedArchiver archivedDataWithRootObject:session];
if (self.performIO)
[self performSaveSessionData:data sessionPath:sessionPath];
}
« no previous file with comments | « ios/chrome/browser/sessions/session_window_ios.h ('k') | ios/chrome/browser/tabs/tab_model.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698