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

Issue 1624683002: mash: Add a simple, temporary preferences store. (Closed)

Created:
4 years, 11 months ago by Elliot Glaysher
Modified:
4 years, 11 months ago
Reviewers:
sky
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, droger+watchlist_chromium.org, viettrungluu+watch_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Add a simple, temporary preferences store. In the long run, we'll need a real solution to preferences, but for now, we replace the implementation of PersistentPrefsStore with one that writes JSON values to file on the mojo:filesystem. The current interface isn't really a match made in heaven and it doesn't really deal with all the complexity that we need to worry about (see 580652), but it's reasonably sandboxed and will work for now. BUG=557405, 580652 Committed: https://crrev.com/c0cbd1f4d7ad0374e1faa05a9531366a11ed7afd Cr-Commit-Position: refs/heads/master@{#371086}

Patch Set 1 #

Patch Set 2 : Better comments. #

Patch Set 3 : Fix the directory unittests? #

Total comments: 2

Patch Set 4 : sky comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+781 lines, -4 lines) Patch
M components/filesystem/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/filesystem/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/filesystem/directory_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/filesystem/directory_impl_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M components/filesystem/file_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/filesystem/file_impl.cc View 1 2 3 2 chunks +23 lines, -0 lines 0 comments Download
A components/filesystem/public/cpp/prefs/BUILD.gn View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
A components/filesystem/public/cpp/prefs/filesystem_json_pref_store.h View 1 1 chunk +183 lines, -0 lines 0 comments Download
A components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc View 1 1 chunk +452 lines, -0 lines 0 comments Download
A components/filesystem/public/cpp/prefs/pref_service_factory.h View 1 1 chunk +27 lines, -0 lines 0 comments Download
A components/filesystem/public/cpp/prefs/pref_service_factory.cc View 1 chunk +46 lines, -0 lines 0 comments Download
M components/filesystem/public/interfaces/file.mojom View 1 chunk +4 lines, -0 lines 0 comments Download
M mash/wallpaper/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
A mash/wallpaper/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M mash/wallpaper/wallpaper.cc View 4 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
Elliot Glaysher
The entire components/filesystem/public/cpp/prefs/ directory should be deleted as soon as there's a real preferences implementation. ...
4 years, 11 months ago (2016-01-22 21:19:38 UTC) #2
sky
LGTM with the following fixed. https://codereview.chromium.org/1624683002/diff/40001/components/filesystem/file_impl.cc File components/filesystem/file_impl.cc (right): https://codereview.chromium.org/1624683002/diff/40001/components/filesystem/file_impl.cc#newcode110 components/filesystem/file_impl.cc:110: const size_t kBufferSize = ...
4 years, 11 months ago (2016-01-22 22:21:13 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1624683002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1624683002/60001
4 years, 11 months ago (2016-01-22 22:35:38 UTC) #6
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-22 23:49:09 UTC) #7
commit-bot: I haz the power
4 years, 11 months ago (2016-01-22 23:50:26 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c0cbd1f4d7ad0374e1faa05a9531366a11ed7afd
Cr-Commit-Position: refs/heads/master@{#371086}

Powered by Google App Engine
This is Rietveld 408576698