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

Unified Diff: Source/core/loader/HttpEquiv.cpp

Issue 1287783003: Make ClientHintsPreferences class work like a class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | « Source/core/loader/FrameLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/HttpEquiv.cpp
diff --git a/Source/core/loader/HttpEquiv.cpp b/Source/core/loader/HttpEquiv.cpp
index 1e387226f9115bb3a2ddfe62e74a62b0b22e01bf..4891b71d4c420cd41522d21d1de5cce2f45fa20f 100644
--- a/Source/core/loader/HttpEquiv.cpp
+++ b/Source/core/loader/HttpEquiv.cpp
@@ -62,9 +62,7 @@ void HttpEquiv::processHttpEquivAcceptCH(Document& document, const AtomicString&
return;
UseCounter::count(document, UseCounter::ClientHintsMetaAcceptCH);
- ClientHintsPreferences clientHintsPreferences = document.clientHintsPreferences();
- handleAcceptClientHintsHeader(content, clientHintsPreferences, document.fetcher());
- document.setClientHintsPreferences(clientHintsPreferences);
+ document.clientHintsPreferences().updateFromAcceptClientHintsHeader(content, document.fetcher());
}
void HttpEquiv::processHttpEquivDefaultStyle(Document& document, const AtomicString& content)
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698