summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-25 19:37:03 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-25 19:37:03 +0000
commit6c3bf032651d5f912775e0c8cd7e962454145ced (patch)
tree88cf8b652147b9acf47aa81999f8652609890dde /sandbox
parentce51317df2e23a717f95e56e1a9db1a7fb330a16 (diff)
downloadchromium_src-6c3bf032651d5f912775e0c8cd7e962454145ced.zip
chromium_src-6c3bf032651d5f912775e0c8cd7e962454145ced.tar.gz
chromium_src-6c3bf032651d5f912775e0c8cd7e962454145ced.tar.bz2
Update uses of UTF conversions in ppapi/, printing/, remoting/, rlz/, sandbox/, skia/, sql/, sync/, tools/, webkit/, win8/ to use the base:: namespace.
BUG=330556 TEST=no change TBR=ben@chromium.org Review URL: https://codereview.chromium.org/121123002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242502 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/win/wow_helper/wow_helper.cc37
1 files changed, 0 insertions, 37 deletions
diff --git a/sandbox/win/wow_helper/wow_helper.cc b/sandbox/win/wow_helper/wow_helper.cc
index 847190a..ea73e84 100644
--- a/sandbox/win/wow_helper/wow_helper.cc
+++ b/sandbox/win/wow_helper/wow_helper.cc
@@ -15,43 +15,6 @@
#include "sandbox/win/wow_helper/service64_resolver.h"
#include "sandbox/win/wow_helper/target_code.h"
-namespace {
-
-// Grabbed from base/strings/string_util.h
-template <class string_type>
-inline typename string_type::value_type* WriteInto(string_type* str,
- size_t length_with_null) {
- str->reserve(length_with_null);
- str->resize(length_with_null - 1);
- return &((*str)[0]);
-}
-
-// Grabbed from base/string_util.cc
-std::string WideToMultiByte(const base::string16& wide, UINT code_page) {
- if (wide.length() == 0)
- return std::string();
-
- // compute the length of the buffer we'll need
- int charcount = WideCharToMultiByte(code_page, 0, wide.c_str(), -1,
- NULL, 0, NULL, NULL);
- if (charcount == 0)
- return std::string();
-
- // convert
- std::string mb;
- WideCharToMultiByte(code_page, 0, wide.c_str(), -1,
- WriteInto(&mb, charcount), charcount, NULL, NULL);
-
- return mb;
-}
-
-// Grabbed from base/string_util.cc
-std::string WideToUTF8(const base::string16& wide) {
- return WideToMultiByte(wide, CP_UTF8);
-}
-
-} // namespace
-
namespace sandbox {
// Performs the interception of NtMapViewOfSection on the 64-bit version of