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

Unified Diff: sync/protocol/proto_value_conversions.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: Address Brett's comment on patch set 46, and rebase. Created 6 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 | « sync/protocol/proto_value_conversions.h ('k') | sync/protocol/proto_value_conversions_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/protocol/proto_value_conversions.cc
diff --git a/sync/protocol/proto_value_conversions.cc b/sync/protocol/proto_value_conversions.cc
index 06ecdfee276aa903faf678e920dabd136b068d98..3dd133be91f3586a41e1508c955d6fbdb4d0d4d1 100644
--- a/sync/protocol/proto_value_conversions.cc
+++ b/sync/protocol/proto_value_conversions.cc
@@ -205,6 +205,15 @@ base::DictionaryValue* TabNavigationToValue(
SET_INT32(http_status_code);
SET_INT32(referrer_policy);
SET_BOOL(is_restored);
+ SET_REP(navigation_redirect, NavigationRedirectToValue);
+ SET_STR(last_navigation_redirect_url);
+ return value;
+}
+
+base::DictionaryValue* NavigationRedirectToValue(
+ const sync_pb::NavigationRedirect& proto) {
+ base::DictionaryValue* value = new base::DictionaryValue();
+ SET_STR(url);
return value;
}
« no previous file with comments | « sync/protocol/proto_value_conversions.h ('k') | sync/protocol/proto_value_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698