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

Issue 2698603003: [Sync] Use ExtractIntegerValue to extract request_id from js args (Closed)

Created:
3 years, 10 months ago by pavely
Modified:
3 years, 10 months ago
CC:
chromium-reviews, marq+watch_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Use ExtractIntegerValue to extract request_id from js args The scenario is: chrome_sync.js passes integer request_id when calling getAllNodes. SyncInternalsMessageHandler::HandleGetAllNodes tries to extract this integer with GetInteger function. The issue is that because on iOS numeric values are passed as double, GetInteger fails and DCHECK gets triggered. The fix is to call ExtractIntegerValue that correctly handles converting double to int. BUG=692834 R=pnoland@chromium.org Review-Url: https://codereview.chromium.org/2698603003 Cr-Commit-Position: refs/heads/master@{#451831} Committed: https://chromium.googlesource.com/chromium/src/+/80325c70ccf2bb0cc17cca4fe30f6eaae9e278dc

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M chrome/browser/ui/webui/sync_internals_message_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/webui/sync_internals/sync_internals_message_handler.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (12 generated)
pavely
Patrick, PTAL. + Evan for owners review in chrome/browser/ui/webui/
3 years, 10 months ago (2017-02-16 01:57:00 UTC) #6
Evan Stade
lgtm
3 years, 10 months ago (2017-02-16 02:41:52 UTC) #9
Patrick Noland
lgtm
3 years, 10 months ago (2017-02-16 18:48:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2698603003/1
3 years, 10 months ago (2017-02-17 15:33:01 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/367193)
3 years, 10 months ago (2017-02-17 16:51:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2698603003/1
3 years, 10 months ago (2017-02-21 18:42:09 UTC) #16
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 21:08:09 UTC) #19
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/80325c70ccf2bb0cc17cca4fe30f...

Powered by Google App Engine
This is Rietveld 408576698