|
|
DescriptionBookmarksFunction sending response after execution in all cases
On some occasions (most likely on big bookmarks models), BookmarksFunction
might be executed while bookmarks model is not yet ready. In this case we
must schedule the function for later execution (when model is ready) and
once function has executed we must SendResponse().
Adding SendResponse() in the above described scenario.
BUG=None
Committed: https://crrev.com/5e25a3281098f5ba5f73659c6732a7ac01a3068a
Cr-Commit-Position: refs/heads/master@{#300744}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rebase #
Messages
Total messages: 27 (12 generated)
atanasb@opera.com changed reviewers: + jyasskin@chromium.org, tfarina@chromium.org
Guys, does this patch looks good to you?
tfarina@chromium.org changed reviewers: + kalman@chromium.org
Redirecting this to Benjamin. At first, it looks fine. https://codereview.chromium.org/660513002/diff/1/chrome/browser/extensions/ap... File chrome/browser/extensions/api/bookmarks/bookmarks_api.cc (right): https://codereview.chromium.org/660513002/diff/1/chrome/browser/extensions/ap... chrome/browser/extensions/api/bookmarks/bookmarks_api.cc:226: RunAndSendResponse(); I don't know if it is fine to send extensions::NOTIFICATION_EXTENSION_BOOKMARKS_API_INVOKED here.
lgtm https://codereview.chromium.org/660513002/diff/1/chrome/browser/extensions/ap... File chrome/browser/extensions/api/bookmarks/bookmarks_api.cc (right): https://codereview.chromium.org/660513002/diff/1/chrome/browser/extensions/ap... chrome/browser/extensions/api/bookmarks/bookmarks_api.cc:226: RunAndSendResponse(); On 2014/10/16 19:08:25, tfarina wrote: > I don't know if it is fine to send > extensions::NOTIFICATION_EXTENSION_BOOKMARKS_API_INVOKED here. Good point. It looks like this notification is used by sync to do some accounting on extension usage of bookmarks APIs. That implies that calling it here is the right thing to do.
atanasb@opera.com changed reviewers: + tim@chromium.org
Thanks for the review kalman. Can you please suggest another reviewer for this patch.
You don't need any other reviewers?
The CQ bit was checked by atanasb@opera.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/660513002/1
The CQ bit was unchecked by atanasb@opera.com
The CQ bit was checked by atanasb@opera.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/660513002/1
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/72001) android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/bu...) android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromiu...) android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromiu...) linux_chromium_compile_dbg_32 on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) ios_rel_device on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device/bu...) mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by atanasb@opera.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/660513002/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by atanasb@opera.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/660513002/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by atanasb@opera.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/660513002/20001
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/5e25a3281098f5ba5f73659c6732a7ac01a3068a Cr-Commit-Position: refs/heads/master@{#300744} |