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

Unified Diff: content/browser/frame_host/navigation_entry_impl.cc

Issue 101573003: Add the navigation redirect-chain to Sync sessions proto for offline analysis. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android unit test (state_serializer_unittests.cc). Created 6 years, 11 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: content/browser/frame_host/navigation_entry_impl.cc
diff --git a/content/browser/frame_host/navigation_entry_impl.cc b/content/browser/frame_host/navigation_entry_impl.cc
index d5d6fc2c982e8e97c60c0edde8e8a438fd2d7822..0dd826cac372e16055de7bcc83156a21299a9efc 100644
--- a/content/browser/frame_host/navigation_entry_impl.cc
+++ b/content/browser/frame_host/navigation_entry_impl.cc
@@ -289,6 +289,15 @@ int NavigationEntryImpl::GetHttpStatusCode() const {
return http_status_code_;
}
+void NavigationEntryImpl::SetRedirectChain(
+ const std::vector<GURL>& redirect_chain) {
+ redirect_chain_ = redirect_chain;
+}
+
+const std::vector<GURL>& NavigationEntryImpl::GetRedirectChain() const {
+ return redirect_chain_;
+}
+
void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) {
can_load_local_resources_ = allow;
}
@@ -331,7 +340,6 @@ void NavigationEntryImpl::ResetForCommit() {
set_is_renderer_initiated(false);
set_transferred_global_request_id(GlobalRequestID());
set_should_replace_entry(false);
- redirect_chain_.clear();
set_should_clear_history_list(false);
set_frame_tree_node_id(-1);
}

Powered by Google App Engine
This is Rietveld 408576698