diff options
author | dcarney@chromium.org <dcarney@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-30 14:46:20 +0000 |
---|---|---|
committer | dcarney@chromium.org <dcarney@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-30 14:46:20 +0000 |
commit | 3a0f7a53fd80a2169481ac397792fd2ca003440f (patch) | |
tree | 35616804a7149b134416361a118871799b22b8e3 | |
parent | 82a6f93c9c567dfb6e1e91d89d7d58dc2071ff40 (diff) | |
download | chromium_src-3a0f7a53fd80a2169481ac397792fd2ca003440f.zip chromium_src-3a0f7a53fd80a2169481ac397792fd2ca003440f.tar.gz chromium_src-3a0f7a53fd80a2169481ac397792fd2ca003440f.tar.bz2 |
remove all usages of v8::String::WriteAscii
R=jochen@chromium.org
TBR=jamesr@chromium.org
BUG=
Review URL: https://chromiumcodereview.appspot.com/14638002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197362 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/renderer/benchmarking_extension.cc | 2 | ||||
-rw-r--r-- | content/renderer/gpu/gpu_benchmarking_extension.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/benchmarking_extension.cc b/chrome/renderer/benchmarking_extension.cc index 84e3001..f254fa0 100644 --- a/chrome/renderer/benchmarking_extension.cc +++ b/chrome/renderer/benchmarking_extension.cc @@ -76,7 +76,7 @@ class BenchmarkingWrapper : public v8::Extension { char name[256]; name[0] = 'c'; name[1] = ':'; - args[0]->ToString()->WriteAscii(&name[2], 0, sizeof(name) - 3); + args[0]->ToString()->WriteUtf8(&name[2], sizeof(name) - 3); int counter = base::StatsTable::current()->GetCounterValue(name); return v8::Integer::New(counter); diff --git a/content/renderer/gpu/gpu_benchmarking_extension.cc b/content/renderer/gpu/gpu_benchmarking_extension.cc index 908a6af..010ccfc 100644 --- a/content/renderer/gpu/gpu_benchmarking_extension.cc +++ b/content/renderer/gpu/gpu_benchmarking_extension.cc @@ -372,7 +372,7 @@ class GpuBenchmarkingWrapper : public v8::Extension { name_filter = ""; } else { char filter[256]; - args[0]->ToString()->WriteAscii(filter, 0, sizeof(filter)-1); + args[0]->ToString()->WriteUtf8(filter, sizeof(filter)-1); name_filter = std::string(filter); } |