|
|
Created:
4 years, 5 months ago by EhsanK Modified:
4 years, 5 months ago Reviewers:
Charlie Reis CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, James Su, site-isolation-reviews_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Description[refactor] content::TextInputManager - Make some methods const and initialize/cleanup IME maps
This CL makes some getter methods in TextInputManager const. Also,
the CL will clean up and initialize maps at the time of unregistering
and registering with TextInputManager.
BUG=629842, 578168
Committed: https://crrev.com/4cfc03e1c2d8561641951e8843f4af4f52285703
Cr-Commit-Position: refs/heads/master@{#406891}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rebased #Patch Set 3 : Adding a comment to .h file #
Messages
Total messages: 21 (13 generated)
ekaramad@chromium.org changed reviewers: + creis@chromium.org
PTAL.
The CQ bit was checked by ekaramad@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Description was changed from ========== [refactor] content::TextInputManager - Make some methods const and initialize/cleanup IME maps This CL makes some getter methods in TextInputManager const. Also, the CL will clean up and initialize maps at the time of unregistering and registering with TextInputManager. BUG=629842, 578168 ========== to ========== [refactor] content::TextInputManager - Make some methods const and initialize/cleanup IME maps This CL makes some getter methods in TextInputManager const. Also, the CL will clean up and initialize maps at the time of unregistering and registering with TextInputManager. BUG=629842, 578168 ==========
Heh, adding more consts after your previous encounter with them? :) Thanks for the initialization fix. LGTM. https://codereview.chromium.org/2170463002/diff/1/content/browser/renderer_ho... File content/browser/renderer_host/text_input_manager.cc (right): https://codereview.chromium.org/2170463002/diff/1/content/browser/renderer_ho... content/browser/renderer_host/text_input_manager.cc:182: composition_range_info_map_[view] = CompositionRangeInfo(); Yikes. I would suggest adding a comment to the .h file where this block of members is declared, mentioning (reminding) they're initialized in Register and cleared in Unregister (per view).
Thanks Charlie! Yep making methods const is a bit ironic after what happened last week :P. But I guess in this case we are making things easier, aren't we? I am open to un-consting these if you think it is more appropriate. The important goal of the CL was the initialization part which is achieved. I will CQ after dry-run or in case you suggest removing the const, I will do it after. Thanks! https://codereview.chromium.org/2170463002/diff/1/content/browser/renderer_ho... File content/browser/renderer_host/text_input_manager.cc (right): https://codereview.chromium.org/2170463002/diff/1/content/browser/renderer_ho... content/browser/renderer_host/text_input_manager.cc:182: composition_range_info_map_[view] = CompositionRangeInfo(); On 2016/07/20 23:08:20, Charlie Reis wrote: > Yikes. I would suggest adding a comment to the .h file where this block of > members is declared, mentioning (reminding) they're initialized in Register and > cleared in Unregister (per view). Done.
On 2016/07/21 16:06:02, EhsanK wrote: > Thanks Charlie! > > Yep making methods const is a bit ironic after what happened last week :P. But I > guess in this case we are making things easier, aren't we? I am open to > un-consting these if you think it is more appropriate. The important goal of the > CL was the initialization part which is achieved. > > I will CQ after dry-run or in case you suggest removing the const, I will do it > after. Thanks! > Feel free to proceed!
The CQ bit was checked by ekaramad@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by ekaramad@chromium.org
The CQ bit was checked by ekaramad@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from creis@chromium.org Link to the patchset: https://codereview.chromium.org/2170463002/#ps40001 (title: "Adding a comment to .h file")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/07/21 16:24:58, Charlie Reis wrote: > On 2016/07/21 16:06:02, EhsanK wrote: > > Thanks Charlie! > > > > Yep making methods const is a bit ironic after what happened last week :P. But > I > > guess in this case we are making things easier, aren't we? I am open to > > un-consting these if you think it is more appropriate. The important goal of > the > > CL was the initialization part which is achieved. > > > > I will CQ after dry-run or in case you suggest removing the const, I will do > it > > after. Thanks! > > > > Feel free to proceed! Thanks!
Message was sent while issue was closed.
Description was changed from ========== [refactor] content::TextInputManager - Make some methods const and initialize/cleanup IME maps This CL makes some getter methods in TextInputManager const. Also, the CL will clean up and initialize maps at the time of unregistering and registering with TextInputManager. BUG=629842, 578168 ========== to ========== [refactor] content::TextInputManager - Make some methods const and initialize/cleanup IME maps This CL makes some getter methods in TextInputManager const. Also, the CL will clean up and initialize maps at the time of unregistering and registering with TextInputManager. BUG=629842, 578168 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== [refactor] content::TextInputManager - Make some methods const and initialize/cleanup IME maps This CL makes some getter methods in TextInputManager const. Also, the CL will clean up and initialize maps at the time of unregistering and registering with TextInputManager. BUG=629842, 578168 ========== to ========== [refactor] content::TextInputManager - Make some methods const and initialize/cleanup IME maps This CL makes some getter methods in TextInputManager const. Also, the CL will clean up and initialize maps at the time of unregistering and registering with TextInputManager. BUG=629842, 578168 Committed: https://crrev.com/4cfc03e1c2d8561641951e8843f4af4f52285703 Cr-Commit-Position: refs/heads/master@{#406891} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/4cfc03e1c2d8561641951e8843f4af4f52285703 Cr-Commit-Position: refs/heads/master@{#406891} |