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

Issue 145053004: Let chrome_prefs handle Preferences initialization from master_preferences. (Closed)

Created:
6 years, 10 months ago by gab
Modified:
6 years, 10 months ago
CC:
chromium-reviews, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org, noms (inactive)
Visibility:
Public.

Description

Let chrome_prefs handle Preferences initialization from master_preferences. chrome_pref_service_factory owns implementation details of how prefs+metadata should be stored, let it handle initialization of its prefs. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249759

Patch Set 1 #

Total comments: 2

Patch Set 2 : private destructor #

Patch Set 3 : re-add accidently removed CreateDirectory() #

Patch Set 4 : add test #

Total comments: 19

Patch Set 5 : rebased on top of https://codereview.chromium.org/154593002/ #

Patch Set 6 : review:erikwright #

Patch Set 7 : merge up to r249145 #

Patch Set 8 : fix clang compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -56 lines) Patch
M chrome/browser/first_run/first_run.h View 1 2 3 4 5 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/first_run/first_run.cc View 1 2 3 4 5 chunks +6 lines, -35 lines 0 comments Download
M chrome/browser/first_run/first_run_browsertest.cc View 1 2 3 4 5 2 chunks +47 lines, -0 lines 0 comments Download
M chrome/browser/first_run/first_run_internal.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.cc View 1 2 3 4 5 6 7 5 chunks +63 lines, -2 lines 0 comments Download
M chrome/browser/prefs/pref_hash_filter.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/prefs/pref_hash_filter.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
gab
Erik/Bernhard PTAL, as discussed offline. Cheers! Gab
6 years, 10 months ago (2014-02-03 18:59:17 UTC) #1
Bernhard Bauer
https://codereview.chromium.org/145053004/diff/70001/chrome/browser/prefs/chrome_pref_service_factory.cc File chrome/browser/prefs/chrome_pref_service_factory.cc (right): https://codereview.chromium.org/145053004/diff/70001/chrome/browser/prefs/chrome_pref_service_factory.cc#newcode287 chrome/browser/prefs/chrome_pref_service_factory.cc:287: virtual ~DictionaryPrefStore() {} Nit: Make the destructor private? Protected ...
6 years, 10 months ago (2014-02-04 09:08:01 UTC) #2
gab
Done, PTAL, thanks! https://codereview.chromium.org/145053004/diff/70001/chrome/browser/prefs/chrome_pref_service_factory.cc File chrome/browser/prefs/chrome_pref_service_factory.cc (right): https://codereview.chromium.org/145053004/diff/70001/chrome/browser/prefs/chrome_pref_service_factory.cc#newcode287 chrome/browser/prefs/chrome_pref_service_factory.cc:287: virtual ~DictionaryPrefStore() {} On 2014/02/04 09:08:02, ...
6 years, 10 months ago (2014-02-04 14:01:03 UTC) #3
Bernhard Bauer
lgtm
6 years, 10 months ago (2014-02-04 14:27:49 UTC) #4
gab
Erik PTAL, added a first run test to cover this (passes now; fails without this ...
6 years, 10 months ago (2014-02-04 19:49:56 UTC) #5
gab
On 2014/02/04 19:49:56, gab wrote: > Erik PTAL, added a first run test to cover ...
6 years, 10 months ago (2014-02-04 19:52:55 UTC) #6
noms (inactive)
https://codereview.chromium.org/145053004/diff/350001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/145053004/diff/350001/chrome/browser/profiles/profile_impl.cc#newcode437 chrome/browser/profiles/profile_impl.cc:437: bool ProfileImpl::InitializePrefsFromMasterPrefs( As discussed offline, these prefs related methods ...
6 years, 10 months ago (2014-02-04 20:36:35 UTC) #7
erikwright (departed)
Regarding noms@ comment, I am open minded but I think that knowledge of the path ...
6 years, 10 months ago (2014-02-04 20:55:27 UTC) #8
gab
Addressed comments in patch set 6. Rebased on top of https://codereview.chromium.org/154593002/ in patch set 5 ...
6 years, 10 months ago (2014-02-04 22:32:10 UTC) #9
Alexei Svitkine (slow)
histograms lgtm
6 years, 10 months ago (2014-02-05 15:36:14 UTC) #10
gab
@Erik: PTAL. Thanks! Gab
6 years, 10 months ago (2014-02-05 22:44:32 UTC) #11
erikwright (departed)
LGTM.
6 years, 10 months ago (2014-02-07 16:26:20 UTC) #12
gab
The CQ bit was checked by gab@chromium.org
6 years, 10 months ago (2014-02-07 16:28:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/145053004/690001
6 years, 10 months ago (2014-02-07 16:29:42 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-07 18:38:11 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=259879
6 years, 10 months ago (2014-02-07 18:38:11 UTC) #16
gab
The CQ bit was checked by gab@chromium.org
6 years, 10 months ago (2014-02-07 18:40:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/145053004/690001
6 years, 10 months ago (2014-02-07 18:41:03 UTC) #18
commit-bot: I haz the power
6 years, 10 months ago (2014-02-07 20:32:45 UTC) #19
Message was sent while issue was closed.
Change committed as 249759

Powered by Google App Engine
This is Rietveld 408576698