|
Make UTF16ToASCII and UTF16TOUTF8 take a StringPiece
This is for consistency with the other UTF APIs. This is annoying in some cases because a WebString can be converted implicitly to a string16, but not a StringPiece, necessitating explicit conversions when this is done. And we can't have both versions because they're ambiguous. But this change will allow greater use of StringPieces without copying.
The parameters to the UTF converters that take StringPieces were converted to by-value given the current guidance in StringPiece.
The main non-search-and-replace change is in aw_render_view_ext.cc which saves two string copies.
NOPRESUBMIT=true
(due to legacy wstrings)
Committed: https://crrev.com/717861b6a965ac33e8f88c93ea66e10dfa5c798f
Cr-Commit-Position: refs/heads/master@{#340306}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+200 lines, -137 lines) |
Patch |
 |
M |
android_webview/renderer/aw_content_renderer_client.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
android_webview/renderer/aw_render_view_ext.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
base/strings/utf_string_conversions.h
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
base/strings/utf_string_conversions.cc
|
View
|
1
|
5 chunks |
+14 lines, -8 lines |
0 comments
|
Download
|
 |
M |
components/autofill/content/renderer/form_cache.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/html_viewer/web_mime_registry_impl.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/child/browser_font_resource_trusted.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/child/notifications/notification_data_conversions.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/child/notifications/notification_manager.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/child/simple_webmimeregistry_impl.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/accessibility/blink_ax_tree_source.cc
|
View
|
|
9 chunks |
+57 lines, -36 lines |
0 comments
|
Download
|
 |
M |
content/renderer/cache_storage/cache_storage_dispatcher.cc
|
View
|
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/renderer/clipboard_utils.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/android/webmediaplayer_android.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_renderer_factory_impl.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/mock_web_rtc_peer_connection_handler_client.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/peer_connection_tracker.cc
|
View
|
|
3 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/rtc_data_channel_handler.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/media/rtc_dtmf_sender_handler.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/media/rtc_peer_connection_handler.cc
|
View
|
|
6 chunks |
+17 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/renderer/npapi/webplugin_impl.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_frame_impl.cc
|
View
|
|
4 chunks |
+19 lines, -14 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_view_browsertest.cc
|
View
|
1
2
|
5 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_view_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/renderer_blink_platform_impl.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/renderer_webcookiejar_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/service_worker_context_client.cc
|
View
|
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/service_worker_type_util.cc
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/speech_recognition_dispatcher.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/blink/encrypted_media_player_support.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/blink/key_system_config_selector.cc
|
View
|
|
3 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
media/blink/webcontentdecryptionmodulesession_impl.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/blink/webencryptedmediaclient_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 27 (12 generated)
|