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

Unified Diff: third_party/WebKit/Source/modules/fetch/Request.cpp

Issue 2573523002: Rename request() method to getRequest(). (Closed)
Patch Set: Fixing a mistake I've made in USBDevice.cpp Created 4 years 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/modules/fetch/Request.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Request.cpp b/third_party/WebKit/Source/modules/fetch/Request.cpp
index 70f80f5d9655af9a333e1ad3e95015f336d2fc81..6088dc7a94f9d4080be011d613ba5bdba251f339 100644
--- a/third_party/WebKit/Source/modules/fetch/Request.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Request.cpp
@@ -97,7 +97,7 @@ Request* Request::createRequestWithRequestOrString(
// integrity metadata is |request|'s integrity metadata."
FetchRequestData* request = createCopyOfFetchRequestDataForFetch(
scriptState,
- inputRequest ? inputRequest->request() : FetchRequestData::create());
+ inputRequest ? inputRequest->getRequest() : FetchRequestData::create());
// We don't use fallback values. We set these flags directly in below.
// - "Let |fallbackMode| be null."
@@ -311,11 +311,11 @@ Request* Request::createRequestWithRequestOrString(
// "Empty |r|'s request's header list."
r->m_request->headerList()->clearList();
// "If |r|'s request's mode is "no-cors", run these substeps:
- if (r->request()->mode() == WebURLRequest::FetchRequestModeNoCORS) {
+ if (r->getRequest()->mode() == WebURLRequest::FetchRequestModeNoCORS) {
// "If |r|'s request's method is not a simple method, throw a
// TypeError."
- if (!FetchUtils::isSimpleMethod(r->request()->method())) {
- exceptionState.throwTypeError("'" + r->request()->method() +
+ if (!FetchUtils::isSimpleMethod(r->getRequest()->method())) {
+ exceptionState.throwTypeError("'" + r->getRequest()->method() +
"' is unsupported in no-cors mode.");
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698