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

Unified Diff: content/renderer/text_input_client_observer.cc

Issue 1619363002: Add compile time checks against longs being used in IPC structs on 32 bit Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more per Dmitry Created 4 years, 11 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
Index: content/renderer/text_input_client_observer.cc
diff --git a/content/renderer/text_input_client_observer.cc b/content/renderer/text_input_client_observer.cc
index eda58f206f1d58ac61d3f2f3a0187a2adb263faf..b97be4a31bd5497b3a58e2a91615a93c90cda472 100644
--- a/content/renderer/text_input_client_observer.cc
+++ b/content/renderer/text_input_client_observer.cc
@@ -65,7 +65,8 @@ void TextInputClientObserver::OnStringAtPoint(gfx::Point point) {
void TextInputClientObserver::OnCharacterIndexForPoint(gfx::Point point) {
blink::WebPoint web_point(point);
- size_t index = webview()->focusedFrame()->characterIndexForPoint(web_point);
+ uint32_t index = static_cast<uint32_t>(
+ webview()->focusedFrame()->characterIndexForPoint(web_point));
Send(new TextInputClientReplyMsg_GotCharacterIndexForPoint(routing_id(),
index));
}

Powered by Google App Engine
This is Rietveld 408576698