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

Unified Diff: chrome/browser/sessions/session_restore.cc

Issue 658073004: Rewrites SerializedNavigationEntry to not have any //content member variables. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: chrome/browser/sessions/session_restore.cc
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index 3764ac0b7b68cd3e991faa0b2d2fce4cd71039f8..efa47206d3327c1b68768f1fb8b1d5e310e5c405 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -1053,7 +1053,8 @@ class SessionRestoreImpl : public content::NotificationObserver {
// Set up the file access rights for the selected navigation entry.
const int id = web_contents->GetRenderProcessHost()->GetID();
const content::PageState& page_state =
- tab.navigations.at(selected_index).page_state();
+ content::PageState::CreateFromEncodedData(
+ tab.navigations.at(selected_index).encoded_page_state());
const std::vector<base::FilePath>& file_paths =
page_state.GetReferencedFiles();
for (std::vector<base::FilePath>::const_iterator file = file_paths.begin();
« no previous file with comments | « no previous file | chrome/browser/sessions/session_service_unittest.cc » ('j') | components/sessions/serialized_navigation_entry.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698