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

Unified Diff: android_webview/native/state_serializer.cc

Issue 1223643002: android_webview: Replace usage of GetActiveEntry by GetLastCommittedEntry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: android_webview/native/state_serializer.cc
diff --git a/android_webview/native/state_serializer.cc b/android_webview/native/state_serializer.cc
index 36589a1bd6b2a0426479a46799f440028fcc262f..e6577bd191c8879ae7d2819d05159c166325252e 100644
--- a/android_webview/native/state_serializer.cc
+++ b/android_webview/native/state_serializer.cc
@@ -113,13 +113,13 @@ bool RestoreFromPickle(base::PickleIterator* iterator,
&restored_entries);
DCHECK_EQ(0u, restored_entries.size());
- if (controller.GetActiveEntry()) {
+ if (controller.GetLastCommittedEntry()) {
// Set up the file access rights for the selected navigation entry.
// TODO(joth): This is duplicated from chrome/.../session_restore.cc and
// should be shared e.g. in NavigationController. http://crbug.com/68222
const int id = web_contents->GetRenderProcessHost()->GetID();
const content::PageState& page_state =
- controller.GetActiveEntry()->GetPageState();
+ controller.GetLastCommittedEntry()->GetPageState();
const std::vector<base::FilePath>& file_paths =
page_state.GetReferencedFiles();
for (std::vector<base::FilePath>::const_iterator file = file_paths.begin();

Powered by Google App Engine
This is Rietveld 408576698