diff options
author | Brett Wilson <brettw@chromium.org> | 2015-07-07 16:38:09 -0700 |
---|---|---|
committer | Brett Wilson <brettw@chromium.org> | 2015-07-07 23:39:16 +0000 |
commit | e3c4d1a1228e00b190ad743a83f88a2266f45238 (patch) | |
tree | 3923b42b43c9b7a8a689d0468688b30bf9ea8f83 /ui/base/ime | |
parent | 1c33a26e56880fbf058fd796aa004e097e07b691 (diff) | |
download | chromium_src-e3c4d1a1228e00b190ad743a83f88a2266f45238.zip chromium_src-e3c4d1a1228e00b190ad743a83f88a2266f45238.tar.gz chromium_src-e3c4d1a1228e00b190ad743a83f88a2266f45238.tar.bz2 |
Move WriteInto to base namespace.
Update all callers.
De-inlines the template. For some reason touching the namespaces started givin errors about DCHECK not being defined. Indeed, this header does not include logging.h. Rather than include logging in this very common header, it seems preferable to move the implementation to the .cc file.
This removes support for the wstring variant and updates the callers that used it.
R=ben@chromium.org, ben
TBR=jschuh (sandbox_win.cc)
NOPRESUBMIT=true
(this patch touches code using legacy wstrings)
Review URL: https://codereview.chromium.org/1223983002.
Cr-Commit-Position: refs/heads/master@{#337703}
Diffstat (limited to 'ui/base/ime')
-rw-r--r-- | ui/base/ime/win/imm32_manager.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/base/ime/win/imm32_manager.cc b/ui/base/ime/win/imm32_manager.cc index 711c1b8..d83eed5 100644 --- a/ui/base/ime/win/imm32_manager.cc +++ b/ui/base/ime/win/imm32_manager.cc @@ -378,7 +378,8 @@ bool IMM32Manager::GetString(HIMC imm_context, return false; DCHECK_EQ(0u, string_size % sizeof(wchar_t)); ::ImmGetCompositionString(imm_context, type, - WriteInto(result, (string_size / sizeof(wchar_t)) + 1), string_size); + base::WriteInto(result, (string_size / sizeof(wchar_t)) + 1), + string_size); return true; } |