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

Issue 2822503002: leveldb::MojoEnv should not inherit from ChromiumEnv. (Closed)

Created:
3 years, 8 months ago by Marijn Kruisselbrink
Modified:
3 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

leveldb::MojoEnv should not inherit from ChromiumEnv. This changes leveldb::MojoEnv to no longer inherit from ChromiumEnv since it overrides nearly every method of that class anyway. Also rather than having the one-background-thread-per-env that ChromiumEnv has this uses base::PostTask to post background tasks to the global task scheduler. Also got rid of being able to specify a custom environment name for MojoEnv. MojoEnv doesn't (and hasn't) actually emit any of the ChromiumEnv histograms. In a follow-up CL I'll add histograms to MojoEnv similar to the ones that ChromiumEnv emits, but for now it doesn't make sense to have these histograms defined. BUG=697612 Review-Url: https://codereview.chromium.org/2822503002 Cr-Commit-Position: refs/heads/master@{#464553} Committed: https://chromium.googlesource.com/chromium/src/+/6bfb96f0eb4350010c8d9c29fb40408212536bcc

Patch Set 1 #

Patch Set 2 : don't have environment name #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -36 lines) Patch
M components/leveldb/env_mojo.h View 3 chunks +7 lines, -7 lines 0 comments Download
M components/leveldb/env_mojo.cc View 4 chunks +43 lines, -4 lines 0 comments Download
M components/leveldb/leveldb_service_impl.h View 1 2 chunks +0 lines, -3 lines 0 comments Download
M components/leveldb/leveldb_service_impl.cc View 1 3 chunks +3 lines, -10 lines 0 comments Download
M components/leveldb/public/interfaces/leveldb.mojom View 1 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/dom_storage/local_storage_context_mojo.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 4 chunks +0 lines, -6 lines 2 comments Download

Messages

Total messages: 28 (15 generated)
Marijn Kruisselbrink
Probably a nicer approach than in https://codereview.chromium.org/2722293002 to address the lifetime issues around MojoEnv/ChromiumEnv: just ...
3 years, 8 months ago (2017-04-13 18:03:17 UTC) #8
Elliot Glaysher
lgtm
3 years, 8 months ago (2017-04-13 19:38:33 UTC) #11
cmumford
nice! lgtm.
3 years, 8 months ago (2017-04-13 19:53:22 UTC) #12
michaeln
lgtm 2, that's a lot nicer :)
3 years, 8 months ago (2017-04-13 20:39:56 UTC) #13
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/2822503002/20001
3 years, 8 months ago (2017-04-13 20:42:22 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/410903)
3 years, 8 months ago (2017-04-13 20:54:22 UTC) #17
Marijn Kruisselbrink
+isherman for histograms OWNERS +tsepez for mojom OWNERS
3 years, 8 months ago (2017-04-13 20:56:42 UTC) #19
Tom Sepez
RS LGTM on deleting method from mojom.
3 years, 8 months ago (2017-04-13 21:00:13 UTC) #20
Ilya Sherman
https://codereview.chromium.org/2822503002/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2822503002/diff/20001/tools/metrics/histograms/histograms.xml#oldcode119852 tools/metrics/histograms/histograms.xml:119852: - <affected-histogram name="LevelDBEnv.LocalStorage.TimeUntilSuccessFor"/> Should these histograms be marked as ...
3 years, 8 months ago (2017-04-13 21:03:03 UTC) #21
Marijn Kruisselbrink
On 2017/04/13 at 21:03:03, isherman wrote: > https://codereview.chromium.org/2822503002/diff/20001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (left): > > https://codereview.chromium.org/2822503002/diff/20001/tools/metrics/histograms/histograms.xml#oldcode119852 ...
3 years, 8 months ago (2017-04-13 21:23:41 UTC) #22
Ilya Sherman
On 2017/04/13 21:23:41, Marijn Kruisselbrink wrote: > On 2017/04/13 at 21:03:03, isherman wrote: > > ...
3 years, 8 months ago (2017-04-13 21:25:24 UTC) #23
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/2822503002/20001
3 years, 8 months ago (2017-04-13 21:29:17 UTC) #25
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 21:37:11 UTC) #28
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/6bfb96f0eb4350010c8d9c29fb40...

Powered by Google App Engine
This is Rietveld 408576698