Commit 5535deb3 authored by arv@chromium.org's avatar arv@chromium.org

NTP: Register callbacks to prevent race conditions.

This fixes the errors related to bookmarkBarDetached and bookmarkBarAttached.

BUG=69705
TEST=Open NTP.
     Open the error console.
     Reload several times.
     Attach/detach the bookmark bar.
     Reload a few more times
     No errors are shown

Review URL: http://codereview.chromium.org/6359003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71697 0039d316-1c4b-4281-b951-d872f2087c98
parent fcba92fd
......@@ -54,6 +54,8 @@ registerCallback('syncMessageChanged');
registerCallback('getAppsCallback');
registerCallback('setShownSections');
registerCallback('foreignSessions');
registerCallback('bookmarkBarDetached');
registerCallback('bookmarkBarAttached');
</script>
<!-- template data placeholder -->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment