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

Issue 2769963005: Add EnabledStateObserver to BackgroundTracingManager (Closed)

Created:
3 years, 9 months ago by ssid
Modified:
3 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, tracing+reviews_chromium.org, wfh+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add EnabledStateObserver to BackgroundTracingManager This CL removes the memory-infra related code into memory-tracing observer. Also the tests implement the observer instead of setting callbacks. BUG=700245 Review-Url: https://codereview.chromium.org/2769963005 Cr-Commit-Position: refs/heads/master@{#460293} Committed: https://chromium.googlesource.com/chromium/src/+/f64ac5cb273e3abab3564f1a5997b3da164ab9ff

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fixes. #

Patch Set 3 : Add destructor and move CONTENT_EXPORT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -44 lines) Patch
M content/browser/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A content/browser/tracing/background_memory_tracing_observer.h View 1 1 chunk +30 lines, -0 lines 0 comments Download
A content/browser/tracing/background_memory_tracing_observer.cc View 1 chunk +35 lines, -0 lines 0 comments Download
M content/browser/tracing/background_tracing_manager_browsertest.cc View 1 6 chunks +49 lines, -12 lines 0 comments Download
M content/browser/tracing/background_tracing_manager_impl.h View 1 2 3 chunks +27 lines, -3 lines 0 comments Download
M content/browser/tracing/background_tracing_manager_impl.cc View 1 7 chunks +39 lines, -27 lines 0 comments Download
M content/public/browser/background_tracing_manager.h View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (30 generated)
ssid
+Oystein: I am planning to add more memory-infra specific stuff in the field trial config. ...
3 years, 9 months ago (2017-03-24 21:31:55 UTC) #8
oystein (OOO til 10th of July)
Overall looks like a good solution! https://codereview.chromium.org/2769963005/diff/40001/content/browser/tracing/background_memory_tracing_observer.cc File content/browser/tracing/background_memory_tracing_observer.cc (right): https://codereview.chromium.org/2769963005/diff/40001/content/browser/tracing/background_memory_tracing_observer.cc#newcode14 content/browser/tracing/background_memory_tracing_observer.cc:14: static auto* instance ...
3 years, 8 months ago (2017-03-28 20:11:18 UTC) #9
ssid
Fixed, thanks. ptal https://codereview.chromium.org/2769963005/diff/40001/content/browser/tracing/background_memory_tracing_observer.cc File content/browser/tracing/background_memory_tracing_observer.cc (right): https://codereview.chromium.org/2769963005/diff/40001/content/browser/tracing/background_memory_tracing_observer.cc#newcode14 content/browser/tracing/background_memory_tracing_observer.cc:14: static auto* instance = new BackgroundMemoryTracingObserver; ...
3 years, 8 months ago (2017-03-28 21:02:03 UTC) #11
ssid
+Bo for BUILD.gn file change.
3 years, 8 months ago (2017-03-28 21:03:31 UTC) #13
ssid
-Bo since I anyway need another content reviewer. Sorry for the spam.
3 years, 8 months ago (2017-03-28 21:04:44 UTC) #14
oystein (OOO til 10th of July)
lgtm and thanks! https://codereview.chromium.org/2769963005/diff/40001/content/browser/tracing/background_memory_tracing_observer.cc File content/browser/tracing/background_memory_tracing_observer.cc (right): https://codereview.chromium.org/2769963005/diff/40001/content/browser/tracing/background_memory_tracing_observer.cc#newcode14 content/browser/tracing/background_memory_tracing_observer.cc:14: static auto* instance = new BackgroundMemoryTracingObserver; ...
3 years, 8 months ago (2017-03-28 21:06:47 UTC) #17
ssid
+alexmos: Please review: content/browser/BUILD.gn content/public/browser/background_tracing_manager.h Thanks!
3 years, 8 months ago (2017-03-28 21:09:44 UTC) #19
alexmos
On 2017/03/28 21:09:44, ssid wrote: > +alexmos: Please review: > content/browser/BUILD.gn > content/public/browser/background_tracing_manager.h > > ...
3 years, 8 months ago (2017-03-28 22:10:40 UTC) #20
ssid
I moved the content_export to just required functions instead of whole class.
3 years, 8 months ago (2017-03-29 03:32:39 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2769963005/130001
3 years, 8 months ago (2017-03-29 04:25:58 UTC) #38
commit-bot: I haz the power
Committed patchset #3 (id:130001) as https://chromium.googlesource.com/chromium/src/+/f64ac5cb273e3abab3564f1a5997b3da164ab9ff
3 years, 8 months ago (2017-03-29 05:47:54 UTC) #41
kolos1
3 years, 8 months ago (2017-03-29 10:43:25 UTC) #42
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:130001) has been created in
https://codereview.chromium.org/2785663002/ by kolos@chromium.org.

The reason for reverting is: This CL causes tests failures
(browser_side_navigation_content_browsertests, content_browsertests,
site_per_process_content_browsertests). 

https://findit-for-me.appspot.com/waterfall/build-failure?url=https://build.c....

Powered by Google App Engine
This is Rietveld 408576698