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

Issue 22647003: Remove chrome.* Function Instrumentation Inlining and Use a Separate Instrumented Object (Closed)

Created:
7 years, 4 months ago by robliao
Modified:
7 years, 4 months ago
Reviewers:
xiyuan, vadimt
CC:
chromium-reviews, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@SMLog
Visibility:
Public.

Description

Remove chrome.* Function Instrumentation Inlining and Use a Separate Instrumented Object Chrome rebinds all of the chrome.* functions during events like permission updates (e.g. chrome.permissions.request will cause all chrome.* to rebind). This has the effect of throwing away all of the instrumentation set up during initialization. The fix here removes all inlining instrumentation from chrome.* and introduces instrumented.* which mirrors chrome.* only for the instrumented functions. instrumented.* also delays the lookup of the function until execution time in the event the functions are rebound by chrome. BUG=164227 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216713

Patch Set 1 #

Total comments: 23

Patch Set 2 : CR Feedback #

Total comments: 4

Patch Set 3 : CR Feedback #

Total comments: 2

Patch Set 4 : CR Feedback #

Total comments: 2

Patch Set 5 : Quick Spacing Fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -263 lines) Patch
M chrome/browser/resources/google_now/background.js View 1 2 3 4 17 chunks +194 lines, -182 lines 0 comments Download
M chrome/browser/resources/google_now/background_test_util.js View 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/resources/google_now/background_unittest.gtestjs View 17 chunks +22 lines, -22 lines 0 comments Download
M chrome/browser/resources/google_now/cards.js View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/google_now/cards_unittest.gtestjs View 14 chunks +18 lines, -18 lines 0 comments Download
M chrome/browser/resources/google_now/utility.js View 1 2 3 11 chunks +69 lines, -30 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
robliao
7 years, 4 months ago (2013-08-08 00:36:53 UTC) #1
vadimt
https://codereview.chromium.org/22647003/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (left): https://codereview.chromium.org/22647003/diff/1/chrome/browser/resources/google_now/background.js#oldcode609 chrome/browser/resources/google_now/background.js:609: googleGeolocationAccessEnabledPref.set({value: true}); Nothing still prevents from having googleGeolocationAccessEnabledPref. Just ...
7 years, 4 months ago (2013-08-08 01:15:10 UTC) #2
robliao
https://codereview.chromium.org/22647003/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (left): https://codereview.chromium.org/22647003/diff/1/chrome/browser/resources/google_now/background.js#oldcode609 chrome/browser/resources/google_now/background.js:609: googleGeolocationAccessEnabledPref.set({value: true}); True, but it wasn't universally applicable (e.g. ...
7 years, 4 months ago (2013-08-08 17:43:31 UTC) #3
vadimt
https://codereview.chromium.org/22647003/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/22647003/diff/1/chrome/browser/resources/google_now/background.js#newcode254 chrome/browser/resources/google_now/background.js:254: function(items) { On 2013/08/08 17:43:31, Robert Liao wrote: > ...
7 years, 4 months ago (2013-08-08 18:19:25 UTC) #4
robliao
https://codereview.chromium.org/22647003/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/22647003/diff/1/chrome/browser/resources/google_now/background.js#newcode254 chrome/browser/resources/google_now/background.js:254: function(items) { The right thing to do here is ...
7 years, 4 months ago (2013-08-08 21:35:35 UTC) #5
vadimt
lgtm https://codereview.chromium.org/22647003/diff/15001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/22647003/diff/15001/chrome/browser/resources/google_now/utility.js#newcode312 chrome/browser/resources/google_now/utility.js:312: instrumentedContainer, You don't need this param.
7 years, 4 months ago (2013-08-08 22:41:26 UTC) #6
robliao
https://codereview.chromium.org/22647003/diff/15001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/22647003/diff/15001/chrome/browser/resources/google_now/utility.js#newcode312 chrome/browser/resources/google_now/utility.js:312: instrumentedContainer, Indeed! On 2013/08/08 22:41:27, vadimt wrote: > You ...
7 years, 4 months ago (2013-08-08 22:55:07 UTC) #7
robliao
xiyuan: Please provide owner approval for this CL. Thanks!
7 years, 4 months ago (2013-08-08 22:55:31 UTC) #8
xiyuan
lgtm https://codereview.chromium.org/22647003/diff/20001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/22647003/diff/20001/chrome/browser/resources/google_now/background.js#newcode837 chrome/browser/resources/google_now/background.js:837: }); nit: this should align with 'get' at ...
7 years, 4 months ago (2013-08-08 23:26:29 UTC) #9
robliao
https://codereview.chromium.org/22647003/diff/20001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/22647003/diff/20001/chrome/browser/resources/google_now/background.js#newcode837 chrome/browser/resources/google_now/background.js:837: }); On 2013/08/08 23:26:29, xiyuan wrote: > nit: this ...
7 years, 4 months ago (2013-08-09 00:44:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robliao@chromium.org/22647003/26001
7 years, 4 months ago (2013-08-09 00:50:02 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=143973
7 years, 4 months ago (2013-08-09 01:57:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robliao@chromium.org/22647003/26001
7 years, 4 months ago (2013-08-09 17:07:50 UTC) #13
commit-bot: I haz the power
7 years, 4 months ago (2013-08-09 17:27:24 UTC) #14
Message was sent while issue was closed.
Change committed as 216713

Powered by Google App Engine
This is Rietveld 408576698