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

Unified Diff: ios/chrome/browser/ui/main/browser_view_wrangler.mm

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/test/perf_test_with_bvc_ios.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/main/browser_view_wrangler.mm
diff --git a/ios/chrome/browser/ui/main/browser_view_wrangler.mm b/ios/chrome/browser/ui/main/browser_view_wrangler.mm
index c68d876c48a067bd74454bbf6ba8a0107c8581ae..1ffdb49c86b9cdc9b766ff502c133555037a7990 100644
--- a/ios/chrome/browser/ui/main/browser_view_wrangler.mm
+++ b/ios/chrome/browser/ui/main/browser_view_wrangler.mm
@@ -6,6 +6,7 @@
#include "base/mac/objc_property_releaser.h"
#import "base/mac/scoped_nsobject.h"
+#include "base/strings/sys_string_conversions.h"
#include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
#import "ios/chrome/browser/browsing_data/browsing_data_removal_controller.h"
@@ -297,8 +298,10 @@
SessionWindowIOS* sessionWindow = nil;
if (!empty) {
// Load existing saved tab model state.
+ NSString* statePath =
+ base::SysUTF8ToNSString(browserState->GetStatePath().AsUTF8Unsafe());
sessionWindow = [[SessionServiceIOS sharedService]
- loadWindowForBrowserState:browserState];
+ loadSessionWindowFromDirectory:statePath];
}
// Create tab model from saved session (nil is ok).
« no previous file with comments | « ios/chrome/browser/test/perf_test_with_bvc_ios.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698