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

Issue 2738613006: Remove non-leaky LazyInstances in cc. (Closed)

Created:
3 years, 9 months ago by danakj
Modified:
3 years, 9 months ago
Reviewers:
vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org, scottmg
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove non-leaky LazyInstances in cc. We do this by removing the LazyInstances entirely. EmptyContentLayerClient was part of production build targets (?) but only used by tests. Switched to the equally capable FakeContentLayerClient. Changed the LazyInstances in FakeTileManager to be static pointers. R=vmpstr@chromium.org BUG=698982 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2738613006 Cr-Commit-Position: refs/heads/master@{#455852} Committed: https://chromium.googlesource.com/chromium/src/+/298fdeb4da7e54f0c26e86e37a9460b401246c03

Patch Set 1 #

Patch Set 2 : cc-remove-non-leaky-singletons: globals #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -112 lines) Patch
M cc/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D cc/layers/empty_content_layer_client.h View 1 chunk +0 lines, -48 lines 0 comments Download
D cc/layers/empty_content_layer_client.cc View 1 chunk +0 lines, -44 lines 0 comments Download
M cc/layers/picture_layer_unittest.cc View 5 chunks +13 lines, -10 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 3 chunks +11 lines, -8 lines 0 comments Download

Messages

Total messages: 26 (17 generated)
danakj
Tests all pass if the FakeTileManager thingers are members - meaning not shared between FakeTileManagers ...
3 years, 9 months ago (2017-03-08 18:57:41 UTC) #2
vmpstr
lgtm, I kind of weakly prefer PS1 since then you don't even have to address ...
3 years, 9 months ago (2017-03-08 19:04:42 UTC) #5
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/2738613006/1
3 years, 9 months ago (2017-03-08 20:28:25 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/397242)
3 years, 9 months ago (2017-03-08 22:05:45 UTC) #14
danakj
So, a lot of tests time out on Windows only with this..
3 years, 9 months ago (2017-03-09 17:02:52 UTC) #15
vmpstr
On 2017/03/09 17:02:52, danakj wrote: > So, a lot of tests time out on Windows ...
3 years, 9 months ago (2017-03-09 18:25:02 UTC) #16
danakj
OK That seems to work. I renamed the vars as u nitted before.
3 years, 9 months ago (2017-03-09 20:06:54 UTC) #19
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/2738613006/40001
3 years, 9 months ago (2017-03-09 20:07:12 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 20:26:59 UTC) #26
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/298fdeb4da7e54f0c26e86e37a94...

Powered by Google App Engine
This is Rietveld 408576698