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

Issue 9835039: Make app_custom_bindings.js lazily evaluated so it doesn't execute on every page load. (Closed)

Created:
8 years, 9 months ago by koz (OOO until 15th September)
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Aaron Boodman, darin-cc_chromium.org, mihaip+watch_chromium.org, brettw-cc_chromium.org, benwells
Visibility:
Public.

Description

Make app and webstore bindings lazily evaluated so they don't execute JS on every page load. BUG=104100 TEST=existing browser tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=129162

Patch Set 1 #

Patch Set 2 : work #

Patch Set 3 : rephrase comment #

Patch Set 4 : clean up Persistent in destructor instead of MakeWeak #

Patch Set 5 : lazy load webstore bindings as well #

Total comments: 31

Patch Set 6 : respond to comments #

Total comments: 8

Patch Set 7 : respond to comments #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -71 lines) Patch
M chrome/renderer/extensions/extension_dispatcher.h View 1 2 3 4 5 6 7 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 5 6 7 7 chunks +48 lines, -6 lines 0 comments Download
M chrome/renderer/module_system.h View 1 2 3 4 5 6 3 chunks +19 lines, -9 lines 0 comments Download
M chrome/renderer/module_system.cc View 1 2 3 4 5 6 6 chunks +21 lines, -6 lines 0 comments Download
M chrome/renderer/module_system_unittest.cc View 1 2 3 4 5 6 8 chunks +168 lines, -39 lines 0 comments Download
M chrome/renderer/native_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/native_handler.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extensions/app_custom_bindings.js View 1 2 3 4 5 4 chunks +13 lines, -5 lines 0 comments Download
M chrome/renderer/resources/extensions/webstore_custom_bindings.js View 1 2 3 4 5 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
koz (OOO until 15th September)
8 years, 9 months ago (2012-03-23 03:49:27 UTC) #1
koz (OOO until 15th September)
As per kalman's suggestion I've merged https://chromiumcodereview.appspot.com/9838044/ into this change.
8 years, 9 months ago (2012-03-23 05:21:55 UTC) #2
not at google - send to devlin
http://codereview.chromium.org/9835039/diff/5008/chrome/renderer/extensions/extension_dispatcher.cc File chrome/renderer/extensions/extension_dispatcher.cc (right): http://codereview.chromium.org/9835039/diff/5008/chrome/renderer/extensions/extension_dispatcher.cc#newcode125 chrome/renderer/extensions/extension_dispatcher.cc:125: module_system->SetLazyField(chrome, "appNotifications", "app", add TODO to pull appNotifications out ...
8 years, 9 months ago (2012-03-25 22:42:58 UTC) #3
koz (OOO until 15th September)
Bah, it looks like I commit the wrong patch the other day, so I lost ...
8 years, 9 months ago (2012-03-26 01:36:09 UTC) #4
not at google - send to devlin
lgtm https://chromiumcodereview.appspot.com/9835039/diff/5008/chrome/renderer/extensions/extension_dispatcher.cc File chrome/renderer/extensions/extension_dispatcher.cc (right): https://chromiumcodereview.appspot.com/9835039/diff/5008/chrome/renderer/extensions/extension_dispatcher.cc#newcode125 chrome/renderer/extensions/extension_dispatcher.cc:125: module_system->SetLazyField(chrome, "appNotifications", "app", On 2012/03/26 01:36:09, koz wrote: ...
8 years, 9 months ago (2012-03-26 02:29:49 UTC) #5
koz (OOO until 15th September)
https://chromiumcodereview.appspot.com/9835039/diff/5008/chrome/renderer/extensions/extension_dispatcher.cc File chrome/renderer/extensions/extension_dispatcher.cc (right): https://chromiumcodereview.appspot.com/9835039/diff/5008/chrome/renderer/extensions/extension_dispatcher.cc#newcode125 chrome/renderer/extensions/extension_dispatcher.cc:125: module_system->SetLazyField(chrome, "appNotifications", "app", On 2012/03/26 02:29:49, kalman wrote: > ...
8 years, 9 months ago (2012-03-26 03:58:58 UTC) #6
Aaron Boodman
lgtm
8 years, 9 months ago (2012-03-26 04:09:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/9835039/8003
8 years, 9 months ago (2012-03-26 22:40:05 UTC) #8
commit-bot: I haz the power
Try job failure for 9835039-8003 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-03-26 23:53:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/9835039/8003
8 years, 9 months ago (2012-03-27 02:41:30 UTC) #10
commit-bot: I haz the power
Try job failure for 9835039-8003 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-27 04:50:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/9835039/8003
8 years, 9 months ago (2012-03-27 04:57:54 UTC) #12
commit-bot: I haz the power
Try job failure for 9835039-8003 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-27 07:17:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/9835039/8003
8 years, 9 months ago (2012-03-27 07:26:49 UTC) #14
commit-bot: I haz the power
8 years, 9 months ago (2012-03-27 08:45:16 UTC) #15
Change committed as 129162

Powered by Google App Engine
This is Rietveld 408576698