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

Unified Diff: Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp

Issue 116983005: Use v8AtomicString instead of v8::String::NewFromUtf8 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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: Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
diff --git a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
index 408b2a0d314ae456aa11bc2a6365a6bd68db6ab5..e7ee4101a39b497586135658fd0fe9725f54d9ce 100644
--- a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
+++ b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
@@ -341,13 +341,13 @@ void V8InjectedScriptHost::evaluateMethodCustom(const v8::FunctionCallbackInfo<v
{
v8::Isolate* isolate = info.GetIsolate();
if (info.Length() < 1) {
- isolate->ThrowException(v8::Exception::Error(v8::String::NewFromUtf8(isolate, "One argument expected.")));
+ isolate->ThrowException(v8::Exception::Error(v8AtomicString(isolate, "One argument expected.")));
return;
}
v8::Handle<v8::String> expression = info[0]->ToString();
if (expression.IsEmpty()) {
- isolate->ThrowException(v8::Exception::Error(v8::String::NewFromUtf8(isolate, "The argument must be a string.")));
+ isolate->ThrowException(v8::Exception::Error(v8AtomicString(isolate, "The argument must be a string.")));
return;
}
« Source/bindings/v8/V8DOMConfiguration.cpp ('K') | « Source/bindings/v8/V8PerContextData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698