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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp

Issue 1958963002: Remove older and unused ScriptState methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/bindings/core/v8/ScriptState.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp
index aa1d36a722bd2aacdcc0f7d14f4bae19166fd832..c59ef520505c894bb4fef213f5aca4448df35ee2 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp
@@ -66,27 +66,6 @@ void ScriptState::disposePerContextData()
m_perContextData = nullptr;
}
-bool ScriptState::evalEnabled() const
-{
- v8::HandleScope handleScope(m_isolate);
- return context()->IsCodeGenerationFromStringsAllowed();
-}
-
-void ScriptState::setEvalEnabled(bool enabled)
-{
- v8::HandleScope handleScope(m_isolate);
- return context()->AllowCodeGenerationFromStrings(enabled);
-}
-
-ScriptValue ScriptState::getFromGlobalObject(const char* name)
-{
- v8::HandleScope handleScope(m_isolate);
- v8::Local<v8::Value> v8Value;
- if (!context()->Global()->Get(context(), v8AtomicString(isolate(), name)).ToLocal(&v8Value))
- return ScriptValue();
- return ScriptValue(this, v8Value);
-}
-
ScriptValue ScriptState::getFromExtrasExports(const char* name)
{
v8::HandleScope handleScope(m_isolate);
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptState.h ('k') | third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698