| Index: third_party/WebKit/Source/core/workers/Worklet.cpp
|
| diff --git a/third_party/WebKit/Source/core/workers/Worklet.cpp b/third_party/WebKit/Source/core/workers/Worklet.cpp
|
| index 6620d822b7d92d4b754b6a80fd0832aaa5d7423f..deb56b048fb2f1add4b971314c3b3c2096b7e6a3 100644
|
| --- a/third_party/WebKit/Source/core/workers/Worklet.cpp
|
| +++ b/third_party/WebKit/Source/core/workers/Worklet.cpp
|
| @@ -62,6 +62,18 @@ ScriptPromise Worklet::addModule(ScriptState* script_state,
|
| return promise;
|
| }
|
|
|
| +WebURLRequest::FetchCredentialsMode Worklet::ParseCredentialsOption(
|
| + const String& credentials_option) {
|
| + if (credentials_option == "omit")
|
| + return WebURLRequest::kFetchCredentialsModeOmit;
|
| + if (credentials_option == "same-origin")
|
| + return WebURLRequest::kFetchCredentialsModeSameOrigin;
|
| + if (credentials_option == "include")
|
| + return WebURLRequest::kFetchCredentialsModeInclude;
|
| + NOTREACHED();
|
| + return WebURLRequest::kFetchCredentialsModeOmit;
|
| +}
|
| +
|
| DEFINE_TRACE(Worklet) {
|
| ContextLifecycleObserver::Trace(visitor);
|
| }
|
|
|