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

Unified Diff: net/proxy/proxy_resolver_v8.cc

Issue 1223983002: Move WriteInto to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « net/disk_cache/blockfile/entry_impl_v3.cc ('k') | net/quic/crypto/channel_id_chromium.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_resolver_v8.cc
diff --git a/net/proxy/proxy_resolver_v8.cc b/net/proxy/proxy_resolver_v8.cc
index 206cd34a961e8bec64606cd92455e2a215f34b4b..73f0428a2cfbdd1349602bc876d93a8593003004 100644
--- a/net/proxy/proxy_resolver_v8.cc
+++ b/net/proxy/proxy_resolver_v8.cc
@@ -140,7 +140,7 @@ std::string V8StringToUTF8(v8::Local<v8::String> s) {
int len = s->Length();
std::string result;
if (len > 0)
- s->WriteUtf8(WriteInto(&result, len + 1));
+ s->WriteUtf8(base::WriteInto(&result, len + 1));
return result;
}
@@ -150,8 +150,10 @@ base::string16 V8StringToUTF16(v8::Local<v8::String> s) {
base::string16 result;
// Note that the reinterpret cast is because on Windows string16 is an alias
// to wstring, and hence has character type wchar_t not uint16_t.
- if (len > 0)
- s->Write(reinterpret_cast<uint16_t*>(WriteInto(&result, len + 1)), 0, len);
+ if (len > 0) {
+ s->Write(reinterpret_cast<uint16_t*>(base::WriteInto(&result, len + 1)), 0,
+ len);
+ }
return result;
}
« no previous file with comments | « net/disk_cache/blockfile/entry_impl_v3.cc ('k') | net/quic/crypto/channel_id_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698