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

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

Issue 2810743002: [ios] Refactor SessionServiceIOS to remove dependency on BrowserState. (Closed)
Patch Set: Fix a typo in SessionServiceIOS initializer's comment. 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_util.mm ('k') | ios/chrome/browser/sessions/test_session_service.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.h
diff --git a/ios/chrome/browser/sessions/test_session_service.h b/ios/chrome/browser/sessions/test_session_service.h
index 9003956beea4caef802e36f7f1bcb4dbbe71abf0..cb1279bb82fed872e456d553a0731bd321903ca8 100644
--- a/ios/chrome/browser/sessions/test_session_service.h
+++ b/ios/chrome/browser/sessions/test_session_service.h
@@ -9,10 +9,14 @@
#import "ios/chrome/browser/sessions/session_service_ios.h"
-// Testing subclass of SessionService that immediately consumes and archives
-// to nowhere session windows passed into its
-// -saveWindow:forBrowserState:immediately: method.
+// Testing subclass of SessionService that immediately consumes session windows
+// passed to -saveSessionWindow:sessionPath:immediately: is consumed immediately
+// but only saved to disk if |performIO| is set to YES..
@interface TestSessionService : SessionServiceIOS
+
+// If YES, then sessions are saved to disk, otherwise, data is discarded.
+@property(nonatomic, assign) BOOL performIO;
+
@end
#endif // IOS_CHROME_BROWSER_SESSIONS_TEST_SESSION_SERVICE_H_
« no previous file with comments | « ios/chrome/browser/sessions/session_util.mm ('k') | ios/chrome/browser/sessions/test_session_service.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698