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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 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: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index c45604d44ad79a9f9e51bf99fa3ca1701a39d7c1..3cd6087d775a16ae9805a2a466b9bce2f73ead2e 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -188,12 +188,13 @@ bool shouldDisallowFetchForMainFrameScript(ResourceRequest& request,
const bool is2GOrLike2G =
is2G || isConnectionEffectively2G(effectiveConnection);
- return document.settings()->disallowFetchForDocWrittenScriptsInMainFrame() ||
+ return document.settings()
+ ->getDisallowFetchForDocWrittenScriptsInMainFrame() ||
(document.settings()
- ->disallowFetchForDocWrittenScriptsInMainFrameOnSlowConnections() &&
+ ->getDisallowFetchForDocWrittenScriptsInMainFrameOnSlowConnections() &&
is2G) ||
(document.settings()
- ->disallowFetchForDocWrittenScriptsInMainFrameIfEffectively2G() &&
+ ->getDisallowFetchForDocWrittenScriptsInMainFrameIfEffectively2G() &&
is2GOrLike2G);
}
@@ -259,7 +260,7 @@ void FrameFetchContext::addAdditionalRequestHeaders(ResourceRequest& request,
if (frame()->loader().loadType() == FrameLoadTypeReload)
request.clearHTTPHeaderField("Save-Data");
- if (frame()->settings() && frame()->settings()->dataSaverEnabled())
+ if (frame()->settings() && frame()->settings()->getDataSaverEnabled())
request.setHTTPHeaderField("Save-Data", "on");
}
@@ -731,7 +732,7 @@ ResourceRequestBlockedReason FrameFetchContext::canRequestInternal(
if (type == Resource::Script || type == Resource::ImportResource) {
DCHECK(frame());
if (!frame()->loader().client()->allowScriptFromSource(
- !frame()->settings() || frame()->settings()->scriptEnabled(),
+ !frame()->settings() || frame()->settings()->getScriptEnabled(),
url)) {
frame()->loader().client()->didNotAllowScript();
// TODO(estark): Use a different ResourceRequestBlockedReason here, since
@@ -986,7 +987,7 @@ ResourceLoadPriority FrameFetchContext::modifyPriorityForExperiments(
return priority;
// If enabled, drop the priority of all resources in a subframe.
- if (frame()->settings()->lowPriorityIframes() && !frame()->isMainFrame())
+ if (frame()->settings()->getLowPriorityIframes() && !frame()->isMainFrame())
return ResourceLoadPriorityVeryLow;
return priority;
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.cpp ('k') | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698