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

Issue 10754004: Remove the refcount from ScriptBadgeController. (Closed)

Created:
8 years, 5 months ago by Jeffrey Yasskin
Modified:
8 years, 5 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, Ryan Sleevi
Visibility:
Public.

Description

Remove the refcount from ScriptBadgeController, which required me to switch it from wrapping a ScriptExecutor to observing one. Also write a simple test to demonstrate how to test ScriptBadgeController. This was the original point of the change. The associated refactoring turned out to be more useful, but was ultimately unnecessary for the test. BUG=133139, 136301 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145994

Patch Set 1 #

Patch Set 2 : Sync. #

Patch Set 3 : Remove injection through ExtensionSystem #

Total comments: 14

Patch Set 4 : Fix Ben's comments. Need to check if ScopedObserver simplifies things. #

Patch Set 5 : With ScopedObserver #

Total comments: 1

Patch Set 6 : Revert ScopedObserver #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -249 lines) Patch
M chrome/browser/extensions/extension_tab_helper.h View 1 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_tab_helper.cc View 1 2 4 chunks +6 lines, -18 lines 0 comments Download
M chrome/browser/extensions/script_badge_controller.h View 1 2 3 4 chunks +12 lines, -31 lines 0 comments Download
M chrome/browser/extensions/script_badge_controller.cc View 3 chunks +4 lines, -29 lines 0 comments Download
A chrome/browser/extensions/script_badge_controller_unittest.cc View 1 2 1 chunk +125 lines, -0 lines 0 comments Download
M chrome/browser/extensions/script_executor.h View 1 2 3 5 3 chunks +43 lines, -8 lines 0 comments Download
A + chrome/browser/extensions/script_executor.cc View 1 2 3 5 4 chunks +26 lines, -7 lines 0 comments Download
D chrome/browser/extensions/script_executor_impl.h View 1 chunk +0 lines, -40 lines 0 comments Download
D chrome/browser/extensions/script_executor_impl.cc View 1 chunk +0 lines, -108 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Jeffrey Yasskin
If you see a better strategy for this, feel free to suggest it.
8 years, 5 months ago (2012-07-09 19:22:05 UTC) #1
not at google - send to devlin
lgtm only nits https://chromiumcodereview.appspot.com/10754004/diff/11001/chrome/browser/extensions/script_badge_controller.h File chrome/browser/extensions/script_badge_controller.h (right): https://chromiumcodereview.appspot.com/10754004/diff/11001/chrome/browser/extensions/script_badge_controller.h#newcode62 chrome/browser/extensions/script_badge_controller.h:62: // Implementation of ScriptExecutor::Observer. nit: nittiest ...
8 years, 5 months ago (2012-07-10 01:28:15 UTC) #2
Jeffrey Yasskin
https://chromiumcodereview.appspot.com/10754004/diff/11001/chrome/browser/extensions/script_badge_controller.h File chrome/browser/extensions/script_badge_controller.h (right): https://chromiumcodereview.appspot.com/10754004/diff/11001/chrome/browser/extensions/script_badge_controller.h#newcode62 chrome/browser/extensions/script_badge_controller.h:62: // Implementation of ScriptExecutor::Observer. On 2012/07/10 01:28:15, kalman wrote: ...
8 years, 5 months ago (2012-07-10 18:34:58 UTC) #3
Jeffrey Yasskin
https://chromiumcodereview.appspot.com/10754004/diff/11001/chrome/browser/extensions/script_executor.h File chrome/browser/extensions/script_executor.h (right): https://chromiumcodereview.appspot.com/10754004/diff/11001/chrome/browser/extensions/script_executor.h#newcode57 chrome/browser/extensions/script_executor.h:57: explicit Observer(ScriptExecutor* script_executor); On 2012/07/10 18:34:58, Jeffrey Yasskin wrote: ...
8 years, 5 months ago (2012-07-10 19:14:44 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/10754004/21002
8 years, 5 months ago (2012-07-10 19:16:52 UTC) #5
commit-bot: I haz the power
Try job failure for 10754004-21002 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-10 20:55:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/10754004/21002
8 years, 5 months ago (2012-07-10 20:56:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/10754004/21002
8 years, 5 months ago (2012-07-10 20:58:00 UTC) #8
commit-bot: I haz the power
Try job failure for 10754004-21002 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-10 22:19:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/10754004/21002
8 years, 5 months ago (2012-07-10 22:27:12 UTC) #10
commit-bot: I haz the power
8 years, 5 months ago (2012-07-10 23:47:04 UTC) #11
Change committed as 145994

Powered by Google App Engine
This is Rietveld 408576698