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

Issue 950053002: Cache the Windows Parental Controls Platform Answer (Closed)

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

Description

Cache the Windows Parental Controls Platform Answer Every time we assess if incognito is available on the system on Windows, we hit COM which could potentially do some hidden I/O on the UI thread. We already cache the answer for the I/O thread use. This delta brings both codepaths together so that the UI thread always uses the cached answer. BUG=458388

Patch Set 1 #

Total comments: 8

Patch Set 2 : Added ParentalControlsState enum #

Total comments: 5

Patch Set 3 : Unit Test Fixes #

Total comments: 4

Patch Set 4 : Synced and All Unit Tests Fixed #

Total comments: 4

Patch Set 5 : Test Isolation #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -22 lines) Patch
M chrome/browser/extensions/api/developer_private/developer_private_api_unittest.cc View 1 2 3 4 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/management/management_api_unittest.cc View 1 2 3 4 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_context_menu_model_unittest.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/prefs/incognito_mode_prefs.h View 1 2 3 4 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/browser/prefs/incognito_mode_prefs.cc View 1 2 3 4 3 chunks +25 lines, -16 lines 2 comments Download
M chrome/browser/prefs/incognito_mode_prefs_unittest.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/window_positioner_unittest.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_context_menu_controller_unittest.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/back_forward_menu_model_unittest.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_context_menu_unittest.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc View 1 2 3 4 2 chunks +14 lines, -1 line 0 comments Download
M chrome/test/base/browser_with_test_window_test.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/base/browser_with_test_window_test.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (8 generated)
robliao
5 years, 10 months ago (2015-02-23 19:34:29 UTC) #2
gab
lgtm w/ enum + a few considerations being calling issue 458388 fixed. Thanks! Gab https://codereview.chromium.org/950053002/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc ...
5 years, 10 months ago (2015-02-24 20:39:48 UTC) #3
gab
On 2015/02/24 20:39:48, gab wrote: > lgtm w/ enum > > + a few considerations ...
5 years, 10 months ago (2015-02-24 20:40:03 UTC) #4
robliao
https://codereview.chromium.org/950053002/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/950053002/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc#newcode27 chrome/browser/prefs/incognito_mode_prefs.cc:27: bool g_parental_control_on = false; On 2015/02/24 20:39:47, gab wrote: ...
5 years, 10 months ago (2015-02-24 23:43:01 UTC) #6
gab
https://codereview.chromium.org/950053002/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/950053002/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc#newcode106 chrome/browser/prefs/incognito_mode_prefs.cc:106: void IncognitoModePrefs::InitializePlatformParentalControls() { On 2015/02/24 23:43:01, robliao wrote: > ...
5 years, 10 months ago (2015-02-25 20:23:52 UTC) #8
robliao
https://codereview.chromium.org/950053002/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/950053002/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc#newcode106 chrome/browser/prefs/incognito_mode_prefs.cc:106: void IncognitoModePrefs::InitializePlatformParentalControls() { On 2015/02/25 20:23:51, gab wrote: > ...
5 years, 10 months ago (2015-02-26 21:03:52 UTC) #11
robliao
Test owners: Please provide owner approval for the mechanical changes in the following files due ...
5 years, 10 months ago (2015-02-26 21:14:47 UTC) #13
robliao
On 2015/02/26 21:14:47, robliao wrote: > Test owners: Please provide owner approval for the mechanical ...
5 years, 10 months ago (2015-02-26 22:49:13 UTC) #14
not at google - send to devlin
https://codereview.chromium.org/950053002/diff/140001/chrome/browser/extensions/extension_service_test_base.cc File chrome/browser/extensions/extension_service_test_base.cc (right): https://codereview.chromium.org/950053002/diff/140001/chrome/browser/extensions/extension_service_test_base.cc#newcode183 chrome/browser/extensions/extension_service_test_base.cc:183: IncognitoModePrefs::InitializePlatformParentalControls(); Kinda weird for this arbitrary thing in Extensions ...
5 years, 10 months ago (2015-02-26 23:36:12 UTC) #15
msw
https://codereview.chromium.org/950053002/diff/140001/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/950053002/diff/140001/chrome/browser/prefs/incognito_mode_prefs.cc#newcode115 chrome/browser/prefs/incognito_mode_prefs.cc:115: void IncognitoModePrefs::InitializePlatformParentalControls() { Define this on all platforms and ...
5 years, 9 months ago (2015-02-27 02:08:28 UTC) #16
robliao
https://codereview.chromium.org/950053002/diff/140001/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/950053002/diff/140001/chrome/browser/prefs/incognito_mode_prefs.cc#newcode115 chrome/browser/prefs/incognito_mode_prefs.cc:115: void IncognitoModePrefs::InitializePlatformParentalControls() { On 2015/02/27 02:08:28, msw wrote: > ...
5 years, 9 months ago (2015-02-27 02:14:02 UTC) #17
robliao
Okay. The tests are happy now. https://codereview.chromium.org/950053002/diff/140001/chrome/browser/extensions/extension_service_test_base.cc File chrome/browser/extensions/extension_service_test_base.cc (right): https://codereview.chromium.org/950053002/diff/140001/chrome/browser/extensions/extension_service_test_base.cc#newcode183 chrome/browser/extensions/extension_service_test_base.cc:183: IncognitoModePrefs::InitializePlatformParentalControls(); On 2015/02/26 ...
5 years, 9 months ago (2015-02-27 21:54:52 UTC) #20
Avi (use Gerrit)
chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc LGTM
5 years, 9 months ago (2015-02-27 21:56:27 UTC) #21
robliao
On 2015/02/27 21:56:27, Avi wrote: > chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc LGTM Misclicked on the mouse before sending the ...
5 years, 9 months ago (2015-02-27 21:57:01 UTC) #22
oshima
c/b/ui/ash lgtm
5 years, 9 months ago (2015-02-27 22:27:54 UTC) #23
Mr4D (OOO till 08-26)
chrome/browser/profiles lgtm
5 years, 9 months ago (2015-02-27 22:52:06 UTC) #24
msw
I'm a little baffled that we need so many tests to explicitly trigger caching a ...
5 years, 9 months ago (2015-02-28 01:05:33 UTC) #25
robliao
As IncognitoModePrefs is structured today, the only way I can think of to autoinit this ...
5 years, 9 months ago (2015-02-28 01:16:31 UTC) #26
msw
On 2015/02/28 01:16:31, robliao wrote: > As IncognitoModePrefs is structured today, the only way I ...
5 years, 9 months ago (2015-02-28 02:39:14 UTC) #27
gab
On 2015/02/28 02:39:14, msw wrote: > On 2015/02/28 01:16:31, robliao wrote: > > As IncognitoModePrefs ...
5 years, 9 months ago (2015-03-02 13:22:04 UTC) #28
gab
Oops and one unsent draft. https://codereview.chromium.org/950053002/diff/40001/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/950053002/diff/40001/chrome/browser/prefs/incognito_mode_prefs.cc#newcode35 chrome/browser/prefs/incognito_mode_prefs.cc:35: ParentalControlsState g_parental_controls_state = On ...
5 years, 9 months ago (2015-03-02 17:09:24 UTC) #29
Paweł Hajdan Jr.
chrome/test LGTM
5 years, 9 months ago (2015-03-02 18:50:54 UTC) #30
robliao
On 2015/03/02 13:22:04, gab wrote: > On 2015/02/28 02:39:14, msw wrote: > > On 2015/02/28 ...
5 years, 9 months ago (2015-03-02 21:55:50 UTC) #31
robliao
On 2015/03/02 21:55:50, robliao wrote: > On 2015/03/02 13:22:04, gab wrote: > > On 2015/02/28 ...
5 years, 9 months ago (2015-03-02 23:28:29 UTC) #32
robliao
5 years, 9 months ago (2015-03-03 19:07:26 UTC) #33
Message was sent while issue was closed.
I'm going to let https://codereview.chromium.org/969813005/ supersede this one.
Thanks!

Powered by Google App Engine
This is Rietveld 408576698