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

Issue 18430004: Sets correct ActivityLog enabled status to the first renderer process (Closed)

Created:
7 years, 5 months ago by pmarch
Modified:
7 years, 4 months ago
Reviewers:
felt, battre
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Sets correct ActivityLog enabled status to the first renderer process BUG=247908 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217425

Patch Set 1 #

Patch Set 2 : disbled backgroundXHR test #

Patch Set 3 : New approach with a preference variable #

Total comments: 8

Patch Set 4 : comments #

Total comments: 2

Patch Set 5 : comments #

Patch Set 6 : #

Total comments: 14

Patch Set 7 : Added MaybeLogEnabled method #

Patch Set 8 : nits #

Patch Set 9 : nits #

Total comments: 3

Patch Set 10 : Adrienne's comments #

Patch Set 11 : Added a unittest #

Total comments: 6

Patch Set 12 : Rebase #

Patch Set 13 : Adrienne's comments #

Patch Set 14 : ChromeOS fix #

Patch Set 15 : ChromeOS fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -117 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -8 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log.h View 1 2 3 4 5 6 7 8 9 8 chunks +26 lines, -22 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +56 lines, -70 lines 0 comments Download
A chrome/browser/extensions/activity_log/activity_log_enabled_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +190 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +0 lines, -17 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
felt
I'm seeing some segfaults on the tryserver runs of our end to end test (ActivityLogApiTest.TriggerEvent) ...
7 years, 5 months ago (2013-07-14 01:37:26 UTC) #1
karenlees
On 2013/07/14 01:37:26, felt wrote: > I'm seeing some segfaults on the tryserver runs of ...
7 years, 5 months ago (2013-07-14 03:20:12 UTC) #2
pmarch
Hi Adrienne and Karen Could you please review this CL. Thanks
7 years, 5 months ago (2013-07-16 17:27:57 UTC) #3
felt
Just starting the review now, could you explain how the prefs work? How do people ...
7 years, 5 months ago (2013-07-18 16:49:43 UTC) #4
felt
On 2013/07/18 16:49:43, felt wrote: > Just starting the review now, could you explain how ...
7 years, 5 months ago (2013-07-18 16:54:32 UTC) #5
pmarch
On 2013/07/18 16:49:43, felt wrote: > Just starting the review now, could you explain how ...
7 years, 5 months ago (2013-07-18 17:25:43 UTC) #6
pmarch
On 2013/07/18 16:54:32, felt wrote: > On 2013/07/18 16:49:43, felt wrote: > > Just starting ...
7 years, 5 months ago (2013-07-18 17:29:10 UTC) #7
pmarch
On 2013/07/18 17:29:10, pmarch wrote: > On 2013/07/18 16:54:32, felt wrote: > > On 2013/07/18 ...
7 years, 5 months ago (2013-07-18 18:38:13 UTC) #8
felt
Hi Petr, a few small comments based on our earlier discussion. https://codereview.chromium.org/18430004/diff/15001/chrome/browser/extensions/activity_log/activity_log.cc File chrome/browser/extensions/activity_log/activity_log.cc (right): ...
7 years, 5 months ago (2013-07-18 20:42:03 UTC) #9
pmarch
updated https://codereview.chromium.org/18430004/diff/15001/chrome/browser/extensions/activity_log/activity_log.cc File chrome/browser/extensions/activity_log/activity_log.cc (right): https://codereview.chromium.org/18430004/diff/15001/chrome/browser/extensions/activity_log/activity_log.cc#newcode177 chrome/browser/extensions/activity_log/activity_log.cc:177: activity_log_extension_enabled_ = On 2013/07/18 20:42:03, felt wrote: > ...
7 years, 5 months ago (2013-07-18 21:37:14 UTC) #10
felt
It now occurs to me that this CL obviates the need for a static method ...
7 years, 5 months ago (2013-07-18 22:11:37 UTC) #11
pmarch
Let's kill LogIsEnabled in a separate patch. https://codereview.chromium.org/18430004/diff/42001/chrome/browser/extensions/activity_log/activity_log.cc File chrome/browser/extensions/activity_log/activity_log.cc (right): https://codereview.chromium.org/18430004/diff/42001/chrome/browser/extensions/activity_log/activity_log.cc#newcode172 chrome/browser/extensions/activity_log/activity_log.cc:172: activity_log_extension_active_(false) { ...
7 years, 5 months ago (2013-07-19 02:41:53 UTC) #12
felt
On 2013/07/19 02:41:53, pmarch wrote: > Let's kill LogIsEnabled in a separate patch. > > ...
7 years, 5 months ago (2013-07-22 23:14:30 UTC) #13
pmarch
On 2013/07/22 23:14:30, felt wrote: > On 2013/07/19 02:41:53, pmarch wrote: > > Let's kill ...
7 years, 5 months ago (2013-07-22 23:21:59 UTC) #14
felt
On 2013/07/22 23:21:59, pmarch wrote: > On 2013/07/22 23:14:30, felt wrote: > > On 2013/07/19 ...
7 years, 5 months ago (2013-07-22 23:32:48 UTC) #15
pmarch
On 2013/07/22 23:32:48, felt wrote: > On 2013/07/22 23:21:59, pmarch wrote: > > On 2013/07/22 ...
7 years, 5 months ago (2013-07-23 00:56:16 UTC) #16
felt
https://codereview.chromium.org/18430004/diff/59001/chrome/browser/extensions/activity_log/activity_log.cc File chrome/browser/extensions/activity_log/activity_log.cc (right): https://codereview.chromium.org/18430004/diff/59001/chrome/browser/extensions/activity_log/activity_log.cc#newcode140 chrome/browser/extensions/activity_log/activity_log.cc:140: return; If we return here, observers is never set ...
7 years, 5 months ago (2013-07-23 06:37:33 UTC) #17
felt
Hi Petr, I'm back from vacation/conference now. What's the current status of this CL?
7 years, 4 months ago (2013-07-29 17:13:43 UTC) #18
pmarch
On 2013/07/29 17:13:43, felt wrote: > Hi Petr, I'm back from vacation/conference now. What's the ...
7 years, 4 months ago (2013-07-29 17:36:39 UTC) #19
pmarch
https://codereview.chromium.org/18430004/diff/59001/chrome/browser/extensions/activity_log/activity_log.cc File chrome/browser/extensions/activity_log/activity_log.cc (right): https://codereview.chromium.org/18430004/diff/59001/chrome/browser/extensions/activity_log/activity_log.cc#newcode140 chrome/browser/extensions/activity_log/activity_log.cc:140: return; On 2013/07/23 06:37:34, felt wrote: > If we ...
7 years, 4 months ago (2013-07-29 17:36:46 UTC) #20
felt
https://codereview.chromium.org/18430004/diff/59001/chrome/browser/extensions/activity_log/activity_log.cc File chrome/browser/extensions/activity_log/activity_log.cc (right): https://codereview.chromium.org/18430004/diff/59001/chrome/browser/extensions/activity_log/activity_log.cc#newcode185 chrome/browser/extensions/activity_log/activity_log.cc:185: enabled_ = true; On 2013/07/29 17:36:47, pmarch wrote: > ...
7 years, 4 months ago (2013-07-29 19:29:42 UTC) #21
felt
https://codereview.chromium.org/18430004/diff/59001/chrome/browser/extensions/activity_log/activity_log_unittest.cc File chrome/browser/extensions/activity_log/activity_log_unittest.cc (right): https://codereview.chromium.org/18430004/diff/59001/chrome/browser/extensions/activity_log/activity_log_unittest.cc#newcode64 chrome/browser/extensions/activity_log/activity_log_unittest.cc:64: // Restore the original command line and undo the ...
7 years, 4 months ago (2013-07-29 21:05:22 UTC) #22
pmarch
Adrienne, could you please have another look at this. Thanks. https://codereview.chromium.org/18430004/diff/59001/chrome/browser/extensions/activity_log/activity_log_unittest.cc File chrome/browser/extensions/activity_log/activity_log_unittest.cc (right): https://codereview.chromium.org/18430004/diff/59001/chrome/browser/extensions/activity_log/activity_log_unittest.cc#newcode64 ...
7 years, 4 months ago (2013-08-08 14:42:41 UTC) #23
felt
lgtm except for these comments Note that if you keep the old name IsLogEnabledOnAnyProfile you'll ...
7 years, 4 months ago (2013-08-08 17:49:24 UTC) #24
felt
Hi Petr, you're going to need a few more reviewers. For chrome/browser/prefs, you need *one* ...
7 years, 4 months ago (2013-08-08 18:28:59 UTC) #25
pmarch
Adrienne, I've added a unit test. https://codereview.chromium.org/18430004/diff/89001/chrome/browser/extensions/api/web_request/web_request_api.cc File chrome/browser/extensions/api/web_request/web_request_api.cc (right): https://codereview.chromium.org/18430004/diff/89001/chrome/browser/extensions/api/web_request/web_request_api.cc#newcode1675 chrome/browser/extensions/api/web_request/web_request_api.cc:1675: if (extensions::ActivityLog::MaybeLogEnabled()) { ...
7 years, 4 months ago (2013-08-12 20:43:53 UTC) #26
pmarch
Hi Dominic, could you please approve change to chrome/browser/prefs/browser_prefs.cc Thanks
7 years, 4 months ago (2013-08-12 20:47:39 UTC) #27
battre
chrome/browser/prefs/browser_prefs.cc LGTM
7 years, 4 months ago (2013-08-13 13:38:01 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pmarch@chromium.org/18430004/120001
7 years, 4 months ago (2013-08-13 13:50:16 UTC) #29
pmarch
Adrienne, Can you go through a new unit test before I submit the CL. Thanks
7 years, 4 months ago (2013-08-13 14:34:57 UTC) #30
felt
https://codereview.chromium.org/18430004/diff/115001/chrome/browser/extensions/activity_log/is_log_enabled_unittest.cc File chrome/browser/extensions/activity_log/is_log_enabled_unittest.cc (right): https://codereview.chromium.org/18430004/diff/115001/chrome/browser/extensions/activity_log/is_log_enabled_unittest.cc#newcode19 chrome/browser/extensions/activity_log/is_log_enabled_unittest.cc:19: class IsLogEnabledTest : public ChromeRenderViewHostTestHarness { i think you ...
7 years, 4 months ago (2013-08-13 15:05:39 UTC) #31
pmarch
https://codereview.chromium.org/18430004/diff/115001/chrome/browser/extensions/activity_log/is_log_enabled_unittest.cc File chrome/browser/extensions/activity_log/is_log_enabled_unittest.cc (right): https://codereview.chromium.org/18430004/diff/115001/chrome/browser/extensions/activity_log/is_log_enabled_unittest.cc#newcode19 chrome/browser/extensions/activity_log/is_log_enabled_unittest.cc:19: class IsLogEnabledTest : public ChromeRenderViewHostTestHarness { On 2013/08/13 15:05:40, ...
7 years, 4 months ago (2013-08-13 15:52:53 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pmarch@chromium.org/18430004/156001
7 years, 4 months ago (2013-08-13 20:38:47 UTC) #33
commit-bot: I haz the power
7 years, 4 months ago (2013-08-14 01:18:49 UTC) #34
Message was sent while issue was closed.
Change committed as 217425

Powered by Google App Engine
This is Rietveld 408576698