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

Issue 969813005: Unify the Windows Parental Controls Platform Caching (Closed)

Created:
5 years, 9 months ago by robliao
Modified:
5 years, 9 months ago
CC:
chromium-reviews, msw
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unify the Windows Parental Controls Platform Caching There were two caches running around for Windows Platform Controls caching. One lived in the incognito mode prefs and the other lived in the Windows code. This change unifies both caches for easier management. BUG=458388 TBR=rogerta Committed: https://crrev.com/4e3ceb427b2285c6288e7daff5e2f316f19b6607 Cr-Commit-Position: refs/heads/master@{#319482}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Moved IsParentalControlActivityLoggingOn #

Patch Set 3 : Downgrade the check #

Total comments: 16

Patch Set 4 : CR Feedback #

Patch Set 5 : CR Feedback #

Total comments: 25

Patch Set 6 : CR Feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -78 lines) Patch
M base/win/metro.h View 1 2 chunks +0 lines, -6 lines 0 comments Download
M base/win/metro.cc View 1 2 3 4 5 2 chunks +0 lines, -35 lines 0 comments Download
M chrome/browser/chrome_browser_main_win.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/prefs/incognito_mode_prefs.h View 1 2 3 4 5 2 chunks +5 lines, -13 lines 1 comment Download
M chrome/browser/prefs/incognito_mode_prefs.cc View 1 2 3 4 5 2 chunks +57 lines, -22 lines 0 comments Download
M chrome/browser/signin/signin_header_helper.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 42 (8 generated)
robliao
Here's the alternate changelists with checks to the threads. The header trick won't work since ...
5 years, 9 months ago (2015-03-02 23:27:46 UTC) #3
gab
Yes, I much prefer this approach, comments below on what I think is a safer ...
5 years, 9 months ago (2015-03-03 13:39:00 UTC) #4
gab
Actually, thinking about it some more, an idea that was brought up (by myself IIRC..) ...
5 years, 9 months ago (2015-03-03 14:12:19 UTC) #5
robliao
On 2015/03/03 14:12:19, gab wrote: > Actually, thinking about it some more, an idea that ...
5 years, 9 months ago (2015-03-03 18:01:12 UTC) #6
robliao
https://codereview.chromium.org/969813005/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/969813005/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc#newcode120 chrome/browser/prefs/incognito_mode_prefs.cc:120: // Production: The thread isn't initialized, so we're the ...
5 years, 9 months ago (2015-03-03 18:10:12 UTC) #7
gab
Okay, lgtm for the post-startup improvement brought by caching, but let's keep working towards a ...
5 years, 9 months ago (2015-03-03 18:22:59 UTC) #8
robliao
https://codereview.chromium.org/969813005/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/969813005/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc#newcode129 chrome/browser/prefs/incognito_mode_prefs.cc:129: base::win::IsParentalControlActivityLoggingOn() ? On 2015/03/03 18:22:59, gab wrote: > On ...
5 years, 9 months ago (2015-03-03 18:26:14 UTC) #9
gab
Just replying to this inline below for the sake of discussion for a follow-up startup ...
5 years, 9 months ago (2015-03-03 18:28:27 UTC) #10
gab
lgtm https://codereview.chromium.org/969813005/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/969813005/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc#newcode123 chrome/browser/prefs/incognito_mode_prefs.cc:123: CHECK( On 2015/03/03 18:22:59, gab wrote: > On ...
5 years, 9 months ago (2015-03-03 18:36:38 UTC) #11
gab
On 2015/03/03 18:36:38, gab wrote: > lgtm Oops clicked "quick lgtm" instead of "publish mail ...
5 years, 9 months ago (2015-03-03 18:38:13 UTC) #12
robliao
On 2015/03/03 18:38:13, gab wrote: > On 2015/03/03 18:36:38, gab wrote: > > lgtm > ...
5 years, 9 months ago (2015-03-03 18:50:28 UTC) #14
robliao
On 2015/03/03 18:38:13, gab wrote: > On 2015/03/03 18:36:38, gab wrote: > > lgtm > ...
5 years, 9 months ago (2015-03-03 18:50:29 UTC) #15
robliao
https://codereview.chromium.org/969813005/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/969813005/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc#newcode123 chrome/browser/prefs/incognito_mode_prefs.cc:123: CHECK( On 2015/03/03 18:36:38, gab wrote: > On 2015/03/03 ...
5 years, 9 months ago (2015-03-03 18:52:42 UTC) #16
gab
On 2015/03/03 18:50:29, robliao wrote: > On 2015/03/03 18:38:13, gab wrote: > > On 2015/03/03 ...
5 years, 9 months ago (2015-03-03 18:53:12 UTC) #17
robliao
On 2015/03/03 18:53:12, gab wrote: > On 2015/03/03 18:50:29, robliao wrote: > > On 2015/03/03 ...
5 years, 9 months ago (2015-03-03 18:54:56 UTC) #18
robliao
The saving grace is that it does help stage the inevitable cleanup here when we ...
5 years, 9 months ago (2015-03-03 18:58:25 UTC) #20
blundell
blundell -> rogerta
5 years, 9 months ago (2015-03-03 19:30:51 UTC) #22
gab
https://codereview.chromium.org/969813005/diff/60001/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/969813005/diff/60001/chrome/browser/prefs/incognito_mode_prefs.cc#newcode44 chrome/browser/prefs/incognito_mode_prefs.cc:44: // feature is available on Windows Vista and beyond. ...
5 years, 9 months ago (2015-03-03 20:05:03 UTC) #23
sky
https://codereview.chromium.org/969813005/diff/60001/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): https://codereview.chromium.org/969813005/diff/60001/chrome/browser/chrome_browser_main_win.cc#newcode215 chrome/browser/chrome_browser_main_win.cc:215: IncognitoModePrefs::ArePlatformParentalControlsEnabled(); IMO the old name is clearer. I wouldn't ...
5 years, 9 months ago (2015-03-03 20:16:53 UTC) #25
robliao
https://codereview.chromium.org/969813005/diff/60001/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): https://codereview.chromium.org/969813005/diff/60001/chrome/browser/chrome_browser_main_win.cc#newcode215 chrome/browser/chrome_browser_main_win.cc:215: IncognitoModePrefs::ArePlatformParentalControlsEnabled(); On 2015/03/03 20:16:53, sky wrote: > IMO the ...
5 years, 9 months ago (2015-03-03 20:20:35 UTC) #26
grt (UTC plus 2)
If you're looking for a different thread for COM, the FILE thread is an option ...
5 years, 9 months ago (2015-03-03 20:28:54 UTC) #27
robliao
https://codereview.chromium.org/969813005/diff/60001/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): https://codereview.chromium.org/969813005/diff/60001/chrome/browser/chrome_browser_main_win.cc#newcode214 chrome/browser/chrome_browser_main_win.cc:214: // Initializes and caches the result on Windows. On ...
5 years, 9 months ago (2015-03-03 21:07:12 UTC) #28
sky
Ok, LGTM
5 years, 9 months ago (2015-03-03 21:59:32 UTC) #29
grt (UTC plus 2)
https://codereview.chromium.org/969813005/diff/120001/base/win/metro.cc File base/win/metro.cc (right): https://codereview.chromium.org/969813005/diff/120001/base/win/metro.cc#newcode7 base/win/metro.cc:7: #include "base/message_loop/message_loop.h" this also seems to be unused. would ...
5 years, 9 months ago (2015-03-04 03:59:39 UTC) #30
gab
A few more nits from me on the latest version, should be good after that ...
5 years, 9 months ago (2015-03-04 16:25:24 UTC) #31
grt (UTC plus 2)
https://codereview.chromium.org/969813005/diff/120001/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/969813005/diff/120001/chrome/browser/prefs/incognito_mode_prefs.cc#newcode144 chrome/browser/prefs/incognito_mode_prefs.cc:144: static enum class ParentalControlsState { On 2015/03/04 16:25:23, gab ...
5 years, 9 months ago (2015-03-04 16:45:13 UTC) #32
gab
https://codereview.chromium.org/969813005/diff/120001/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/969813005/diff/120001/chrome/browser/prefs/incognito_mode_prefs.cc#newcode144 chrome/browser/prefs/incognito_mode_prefs.cc:144: static enum class ParentalControlsState { On 2015/03/04 16:45:12, grt ...
5 years, 9 months ago (2015-03-04 16:53:19 UTC) #33
robliao
https://codereview.chromium.org/969813005/diff/120001/base/win/metro.cc File base/win/metro.cc (right): https://codereview.chromium.org/969813005/diff/120001/base/win/metro.cc#newcode7 base/win/metro.cc:7: #include "base/message_loop/message_loop.h" On 2015/03/04 03:59:39, grt wrote: > this ...
5 years, 9 months ago (2015-03-04 18:47:44 UTC) #34
gab
lgtm (once again!), w/ one comment on a comment Cheers, Gab https://codereview.chromium.org/969813005/diff/120001/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): ...
5 years, 9 months ago (2015-03-04 19:21:20 UTC) #35
grt (UTC plus 2)
lgtm
5 years, 9 months ago (2015-03-04 20:18:45 UTC) #36
robliao
On 2015/03/04 20:18:45, grt wrote: > lgtm rogerta ping for chrome/browser/signin/signin_header_helper.cc Thanks!
5 years, 9 months ago (2015-03-05 22:02:46 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/969813005/140001
5 years, 9 months ago (2015-03-06 18:27:34 UTC) #40
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years, 9 months ago (2015-03-06 19:49:38 UTC) #41
commit-bot: I haz the power
5 years, 9 months ago (2015-03-06 19:52:40 UTC) #42
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/4e3ceb427b2285c6288e7daff5e2f316f19b6607
Cr-Commit-Position: refs/heads/master@{#319482}

Powered by Google App Engine
This is Rietveld 408576698