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

Issue 1881253003: Create a PrefStore in support of Blimp metrics collection. (Closed)

Created:
4 years, 8 months ago by Jess
Modified:
4 years, 8 months ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create a PrefStore in support of Blimp metrics collection. A light-weight memory-backed perfstore implementation. Needed for MetricService support. Used to hold logs until upload. Moving the existing store for android webview into a shared space under components/pref and adding tests. BUG=592757, 604955 Committed: https://crrev.com/b891cd667f263782a6f97466e264de3e729d3bc0 Cr-Commit-Position: refs/heads/master@{#389291}

Patch Set 1 : Create a BlimpPrefStore in support of metrics collection. #

Patch Set 2 : Adding components/prefs to common engine build dependencies. #

Total comments: 13

Patch Set 3 : Requested style and comment cleanups. #

Patch Set 4 : Add tests for basic functionality of BlimpPrefStore. #

Patch Set 5 : Additional test to confirm proper observer calls. #

Total comments: 2

Patch Set 6 : Requested comment style clean up. #

Patch Set 7 : Missed comment style clean up. #

Patch Set 8 : Switch to shared InMemoryPrefStore. #

Patch Set 9 : Add edits to android_webview .gyp file. #

Patch Set 10 : Add in_memory_pref_store to prefs.gyp. #

Total comments: 2

Patch Set 11 : Add suggested comment improvement. #

Patch Set 12 : Remove extraneous the in comment. #

Patch Set 13 : Rebase and fix conflict with ptr migration work. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -161 lines) Patch
M android_webview/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1 line, -2 lines 0 comments Download
M android_webview/android_webview.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
D android_webview/browser/aw_pref_store.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -64 lines 0 comments Download
D android_webview/browser/aw_pref_store.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -78 lines 0 comments Download
M android_webview/native/aw_autofill_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M components/prefs/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
A + components/prefs/in_memory_pref_store.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +12 lines, -12 lines 0 comments Download
A components/prefs/in_memory_pref_store.cc View 1 2 3 4 5 6 7 1 chunk +76 lines, -0 lines 0 comments Download
A components/prefs/in_memory_pref_store_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +105 lines, -0 lines 0 comments Download
M components/prefs/prefs.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (25 generated)
Jess
I went with a minimal lightweight implementation since that should be all that is required ...
4 years, 8 months ago (2016-04-14 18:04:18 UTC) #4
Kevin M
https://codereview.chromium.org/1881253003/diff/20001/blimp/engine/common/blimp_pref_store.cc File blimp/engine/common/blimp_pref_store.cc (right): https://codereview.chromium.org/1881253003/diff/20001/blimp/engine/common/blimp_pref_store.cc#newcode14 blimp/engine/common/blimp_pref_store.cc:14: BlimpPrefStore::BlimpPrefStore() {} Add newline above https://codereview.chromium.org/1881253003/diff/20001/blimp/engine/common/blimp_pref_store.h File blimp/engine/common/blimp_pref_store.h (right): ...
4 years, 8 months ago (2016-04-14 21:49:50 UTC) #5
Jess
Please share your thoughts on the refactor. Unfortunately there are some implementation differences between AwPrefStore ...
4 years, 8 months ago (2016-04-14 22:59:49 UTC) #6
Kevin M
https://codereview.chromium.org/1881253003/diff/20001/blimp/engine/common/blimp_pref_store.h File blimp/engine/common/blimp_pref_store.h (right): https://codereview.chromium.org/1881253003/diff/20001/blimp/engine/common/blimp_pref_store.h#newcode24 blimp/engine/common/blimp_pref_store.h:24: class BlimpPrefStore : public PersistentPrefStore { On 2016/04/14 22:59:49, ...
4 years, 8 months ago (2016-04-15 17:45:38 UTC) #7
Jess
Sounds reasonable. Will structure tests as soon as the decision on the refactor seems firm. ...
4 years, 8 months ago (2016-04-18 21:40:45 UTC) #8
Kevin M
lgtm Can you create a bug to track for the refactoring task? I don't think ...
4 years, 8 months ago (2016-04-19 19:57:37 UTC) #9
Jess
PTAL. Tests added. Please confirm I covered all cases you wanted to see.
4 years, 8 months ago (2016-04-20 00:00:54 UTC) #10
Kevin M
lgtm Yeah, that's what I had in mind. Thanks for writing the tests. https://codereview.chromium.org/1881253003/diff/80001/blimp/engine/common/blimp_pref_store_unittest.cc File ...
4 years, 8 months ago (2016-04-20 23:03:35 UTC) #11
Jess
https://codereview.chromium.org/1881253003/diff/80001/blimp/engine/common/blimp_pref_store_unittest.cc File blimp/engine/common/blimp_pref_store_unittest.cc (right): https://codereview.chromium.org/1881253003/diff/80001/blimp/engine/common/blimp_pref_store_unittest.cc#newcode48 blimp/engine/common/blimp_pref_store_unittest.cc:48: // Add one. On 2016/04/20 23:03:35, Kevin M wrote: ...
4 years, 8 months ago (2016-04-20 23:32:07 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881253003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881253003/120001
4 years, 8 months ago (2016-04-20 23:44:22 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/171115)
4 years, 8 months ago (2016-04-21 00:04:27 UTC) #20
Jess
Could you please review for the addition of //components/pref to Blimps DEPS?
4 years, 8 months ago (2016-04-21 00:09:32 UTC) #23
battre
Isn't this a complete copy of AwPrefStore? Wouldn't it be better to add an InMemoryPrefStore ...
4 years, 8 months ago (2016-04-21 08:15:39 UTC) #25
Bernhard Bauer
On 2016/04/21 08:15:39, battre wrote: > Isn't this a complete copy of AwPrefStore? Wouldn't it ...
4 years, 8 months ago (2016-04-21 09:00:57 UTC) #26
Jess
+ Webview folks Was hoping to get something working in quickly with minimal changes outside ...
4 years, 8 months ago (2016-04-21 21:32:59 UTC) #30
Torne
This seems like a brilliant idea to me. Even adding unit tests! The luxury ;P ...
4 years, 8 months ago (2016-04-22 13:00:22 UTC) #31
Jess
https://codereview.chromium.org/1881253003/diff/180001/components/prefs/in_memory_pref_store.h File components/prefs/in_memory_pref_store.h (right): https://codereview.chromium.org/1881253003/diff/180001/components/prefs/in_memory_pref_store.h#newcode21 components/prefs/in_memory_pref_store.h:21: // PrefService, which in turn is needed by the ...
4 years, 8 months ago (2016-04-22 17:23:24 UTC) #32
Bernhard Bauer
LGTM, thanks!
4 years, 8 months ago (2016-04-22 18:10:57 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881253003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881253003/220001
4 years, 8 months ago (2016-04-22 19:24:23 UTC) #36
commit-bot: I haz the power
All required reviewers (with asterisk prefixes) have not yet approved this CL. No L-G-T-M from ...
4 years, 8 months ago (2016-04-22 19:24:26 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881253003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881253003/220001
4 years, 8 months ago (2016-04-22 19:50:11 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/217606)
4 years, 8 months ago (2016-04-22 20:46:31 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881253003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881253003/240001
4 years, 8 months ago (2016-04-22 21:19:39 UTC) #46
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 8 months ago (2016-04-22 23:16:30 UTC) #48
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 23:17:26 UTC) #50
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/b891cd667f263782a6f97466e264de3e729d3bc0
Cr-Commit-Position: refs/heads/master@{#389291}

Powered by Google App Engine
This is Rietveld 408576698