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

Issue 156693003: Disable SettingsEnforcement when the machine is connected to a domain. (Closed)

Created:
6 years, 10 months ago by gab
Modified:
6 years, 10 months ago
CC:
chromium-reviews, robertshield, Bernhard Bauer
Visibility:
Public.

Description

Disable SettingsEnforcement when the machine is connected to a domain. This add ~0.18ms to startup on my machine; note that it's already called 4 times before me (the first call costing ~0.38m followed by 3 X 0.18ms). See my analysis on http://codereview.chromium.org/140553005 It's not clear whether this can get worse in some scenarios, but I'm already calling this later than the current caller so... I'm also keeping the result as a static to avoid calling this multiple times (e.g. when doing unloaded profile initialization we don't want to call this multiple times in a loop in a short time span). And we have timing stats for Settings.FilterOnLoadTime which will let us know if there are any big outliers coming out of this CL. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251500

Patch Set 1 #

Patch Set 2 : also gather timings when IsEnrolledToDomain is true #

Patch Set 3 : win-only #

Patch Set 4 : merge up to r250043 #

Patch Set 5 : merge up to r250500 #

Total comments: 2

Patch Set 6 : better approach #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -2 lines) Patch
M chrome/browser/prefs/chrome_pref_service_factory.cc View 1 2 3 4 5 2 chunks +17 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
gab
Erik PTAL. @cpu: is my reasoning of how this affects startup under different configs not ...
6 years, 10 months ago (2014-02-07 22:11:37 UTC) #1
cpu_(ooo_6.6-7.5)
sounds reasonable.
6 years, 10 months ago (2014-02-10 20:10:45 UTC) #2
gab
Thanks, ping erikwright
6 years, 10 months ago (2014-02-11 21:09:07 UTC) #3
gab
Robert, can you please take a look given Erik's very busy on other CLs? Thanks, ...
6 years, 10 months ago (2014-02-13 14:29:17 UTC) #4
robertshield
https://codereview.chromium.org/156693003/diff/270001/chrome/browser/prefs/pref_hash_filter.cc File chrome/browser/prefs/pref_hash_filter.cc (right): https://codereview.chromium.org/156693003/diff/270001/chrome/browser/prefs/pref_hash_filter.cc#newcode90 chrome/browser/prefs/pref_hash_filter.cc:90: do_filtering = base::win::IsEnrolledToDomain(); shouldn't this have a ! in ...
6 years, 10 months ago (2014-02-13 14:31:12 UTC) #5
erikwright (departed)
Other question: Is the intent to disable all tracking, or just to disable protection? If ...
6 years, 10 months ago (2014-02-13 14:34:04 UTC) #6
gab
Thanks for your comments. @erik: I indeed originally intended to do it in chrome_pref_service_factory.cc; not ...
6 years, 10 months ago (2014-02-13 15:58:55 UTC) #7
Alexei Svitkine (slow)
lgtm for histograms
6 years, 10 months ago (2014-02-14 15:52:54 UTC) #8
gab
On 2014/02/14 15:52:54, Alexei Svitkine wrote: > lgtm for histograms Thanks, @robertshield ping :)!
6 years, 10 months ago (2014-02-14 18:43:31 UTC) #9
robertshield
lgtm
6 years, 10 months ago (2014-02-14 20:19:04 UTC) #10
gab
The CQ bit was checked by gab@chromium.org
6 years, 10 months ago (2014-02-14 21:02:59 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/156693003/380001
6 years, 10 months ago (2014-02-14 21:09:12 UTC) #12
commit-bot: I haz the power
6 years, 10 months ago (2014-02-15 03:48:25 UTC) #13
Message was sent while issue was closed.
Change committed as 251500

Powered by Google App Engine
This is Rietveld 408576698