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

Issue 2714853002: Remove kDistroDict from Preferences. (Closed)

Created:
3 years, 10 months ago by gab
Modified:
3 years, 9 months ago
CC:
chromium-reviews, alemate+watch_chromium.org, grt+watch_chromium.org, achuith+watch_chromium.org, pennymac+watch_chromium.org, oshima+watch_chromium.org, wfh+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove kDistroDict from Preferences. Extracted from https://codereview.chromium.org/2705113005. kDistroDict was mapped along with other master_preferences into Preferences but was never registered to be read at runtime... except for the RLZ ping delay that is... which is now mapped to a real pref to keep things cleaner. Also fixes a long standing mistake to send the ping delay as milliseconds instead of seconds..! https://codereview.chromium.org/2714853002/diff/160001/chrome/browser/chrome_browser_main.cc#newcode1752 BUG=555550 Review-Url: https://codereview.chromium.org/2714853002 Cr-Commit-Position: refs/heads/master@{#454115} Committed: https://chromium.googlesource.com/chromium/src/+/3ca4a4913a34992aaa78c25a6e304aef8fca340b

Patch Set 1 #

Patch Set 2 : fix compile #

Patch Set 3 : fix buildflags #

Patch Set 4 : fix GN check #

Patch Set 5 : Format and hide constant behind flag too #

Total comments: 27

Patch Set 6 : rebase on r453103 #

Patch Set 7 : review:grt/rogerta #

Patch Set 8 : fix compile: RLZ files are compiled outside of RLZ?! #

Total comments: 5

Patch Set 9 : kRlzPingDelay -> kRlzPingDelaySeconds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -120 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/first_run/first_run.h View 1 2 3 4 5 6 3 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/first_run/first_run.cc View 1 2 3 4 5 6 7 chunks +15 lines, -24 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 7 chunks +44 lines, -11 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/prefs/profile_pref_store_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/profile_pref_store_manager.cc View 2 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/prefs/profile_pref_store_manager_unittest.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/rlz/chrome_rlz_tracker_delegate.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/rlz/chrome_rlz_tracker_delegate.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/installer/util/BUILD.gn View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/installer/util/master_preferences.h View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/installer/util/master_preferences.cc View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -2 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.h View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/installer/util/master_preferences_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +30 lines, -35 lines 0 comments Download

Messages

Total messages: 64 (49 generated)
gab
Greg PTaL, this can land on its own, thanks!
3 years, 10 months ago (2017-02-23 23:26:45 UTC) #9
grt (UTC plus 2)
a nice cleanup. +rogerta for 90 vs 90000 question. i didn't look at the history ...
3 years, 10 months ago (2017-02-24 07:42:21 UTC) #31
Roger Tawa OOO till Jul 10th
Thanks for the clean up Gab. Some comments below, plus discovery of a really old ...
3 years, 10 months ago (2017-02-24 16:02:18 UTC) #32
gab
Comments addressed, thanks, PTanL! https://codereview.chromium.org/2714853002/diff/160001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2714853002/diff/160001/chrome/browser/chrome_browser_main.cc#newcode1752 chrome/browser/chrome_browser_main.cc:1752: base::TimeDelta::FromMilliseconds(abs(ping_delay)), On 2017/02/24 16:02:17, Roger ...
3 years, 9 months ago (2017-02-28 19:54:46 UTC) #36
grt (UTC plus 2)
lgtm. the change in behavior makes me a little squeamish, but i can't imagine it ...
3 years, 9 months ago (2017-02-28 20:09:07 UTC) #41
gab
https://codereview.chromium.org/2714853002/diff/160001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2714853002/diff/160001/chrome/browser/prefs/browser_prefs.cc#newcode753 chrome/browser/prefs/browser_prefs.cc:753: #if BUILDFLAG(ENABLE_RLZ) On 2017/02/28 20:09:07, grt (UTC plus 1) ...
3 years, 9 months ago (2017-02-28 22:30:41 UTC) #42
gab
@alemate for chrome/browser/chromeos/login/session/user_session_manager.cc @sky for chrome_browser_main.cc and chrome/common/DEPS Thanks, Gab
3 years, 9 months ago (2017-03-01 00:56:56 UTC) #46
gab
On 2017/03/01 00:56:56, gab (UTC plus 9 Tokyo) wrote: > @alemate for chrome/browser/chromeos/login/session/user_session_manager.cc > > ...
3 years, 9 months ago (2017-03-01 00:57:35 UTC) #47
sky
https://codereview.chromium.org/2714853002/diff/230001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2714853002/diff/230001/chrome/browser/chrome_browser_main.cc#newcode1744 chrome/browser/chrome_browser_main.cc:1744: int ping_delay = profile_->GetPrefs()->GetInteger(prefs::kRlzPingDelay); optional: How about renaming the ...
3 years, 9 months ago (2017-03-01 03:52:09 UTC) #50
gab
@sky: 1 done, 1 replied. Thanks. @alemate: chromeos/login side-effects @rogerta: rlz/ https://codereview.chromium.org/2714853002/diff/230001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): ...
3 years, 9 months ago (2017-03-01 04:28:03 UTC) #53
sky
LGTM https://codereview.chromium.org/2714853002/diff/230001/chrome/common/BUILD.gn File chrome/common/BUILD.gn (right): https://codereview.chromium.org/2714853002/diff/230001/chrome/common/BUILD.gn#newcode584 chrome/common/BUILD.gn:584: "//rlz/features", On 2017/03/01 04:28:02, gab (slow - travel ...
3 years, 9 months ago (2017-03-01 16:37:06 UTC) #56
Roger Tawa OOO till Jul 10th
lgtm Thanks Gab.
3 years, 9 months ago (2017-03-01 19:30:46 UTC) #57
Alexander Alekseev
chrome/browser/chromeos/login/session/user_session_manager.cc lgtm
3 years, 9 months ago (2017-03-01 21:54:10 UTC) #58
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/2714853002/250001
3 years, 9 months ago (2017-03-02 00:13:49 UTC) #61
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 00:20:24 UTC) #64
Message was sent while issue was closed.
Committed patchset #9 (id:250001) as
https://chromium.googlesource.com/chromium/src/+/3ca4a4913a34992aaa78c25a6e30...

Powered by Google App Engine
This is Rietveld 408576698