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

Unified Diff: components/sessions/core/serialized_navigation_driver.h

Issue 2921883003: [Sync] Ensure referrer is recorded regardless of policy conversion (Closed)
Patch Set: Tighten Created 3 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: components/sessions/core/serialized_navigation_driver.h
diff --git a/components/sessions/core/serialized_navigation_driver.h b/components/sessions/core/serialized_navigation_driver.h
index 74bbfefe1cbe9fbc3d1b323a2fa0c23d9fcfe132..2a9f74f8230c4c50dbdb1843dbcfce62b86ae9d6 100644
--- a/components/sessions/core/serialized_navigation_driver.h
+++ b/components/sessions/core/serialized_navigation_driver.h
@@ -24,18 +24,6 @@ class SESSIONS_EXPORT SerializedNavigationDriver {
// Returns the default referrer policy.
virtual int GetDefaultReferrerPolicy() const = 0;
- // Maps current referrer policies to old values to work around
- // crbug.com/450589. Returns false if the referrer should be stripped.
- virtual bool MapReferrerPolicyToOldValues(
- int referrer_policy,
- int* mapped_referrer_policy) const = 0;
-
- // Sanitizes a referrer policy that might either be in the old or the new
- // format. Returns false if the referrer should be stripped.
- virtual bool MapReferrerPolicyToNewValues(
- int referrer_policy,
- int* mapped_referrer_policy) const = 0;
-
// Returns a sanitized version of the given |navigation|'s encoded_page_state
// suitable for writing to disk.
virtual std::string GetSanitizedPageStateForPickle(

Powered by Google App Engine
This is Rietveld 408576698