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

Issue 27548004: Cache force-installed apps/extensions in device-local accounts (Closed)

Created:
7 years, 2 months ago by bartfab (slow)
Modified:
7 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Cache force-installed apps/extensions in device-local accounts This CL adds the DeviceLocalAccountExternalPolicyLoader, a replacement for the ExternalPolicyLoader that caches force-installed apps/extensions, allowing them to be installed offline. The caches for individual accounts are managed by the DeviceLocalAccountPolicyService which makes sure to remove obsolete cache directories. BUG=287802 TEST=Full coverage with new browser and unit tests NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229912

Patch Set 1 #

Total comments: 56

Patch Set 2 : Rebased #

Patch Set 3 : Comments addressed. #

Total comments: 2

Patch Set 4 : Comment addressed and rebased. #

Patch Set 5 : Fix compilation. #

Patch Set 6 : Fix unit tests. #

Patch Set 7 : Decouple DeviceLocalAccountPolicyBroker instantiation and initialization. #

Patch Set 8 : Rebased. Ready to reland after revert due to conflicting concurrent commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1659 lines, -386 lines) Patch
A chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.h View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc View 1 2 3 4 5 6 7 1 chunk +106 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc View 1 2 3 4 5 1 chunk +309 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/external_pref_cache_loader.h View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account.h View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 1 2 3 9 chunks +133 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_provider.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.h View 1 2 3 4 5 6 8 chunks +68 lines, -33 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.cc View 1 2 3 4 5 6 8 chunks +275 lines, -83 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc View 1 2 3 12 chunks +610 lines, -243 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/external_provider_impl.h View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/external_provider_impl.cc View 1 2 3 chunks +45 lines, -15 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos_paths.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/chromeos_paths.cc View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
bartfab (slow)
Hi Matt, Please review c/b/chromeos/extensions/* and c/b/extensions/*. Hi Joao, Please review c/b/chromeos/policy/* and c/b/policy/* Hi ...
7 years, 2 months ago (2013-10-16 20:01:22 UTC) #1
Daniel Erat
LGTM for chromeos/chromeos_paths.*
7 years, 2 months ago (2013-10-16 20:07:28 UTC) #2
Matt Perry
I'm not very familiar with the ExternalPolicyLoader code, but this seems OK at a high ...
7 years, 2 months ago (2013-10-16 21:19:29 UTC) #3
bartfab (slow)
On 2013/10/16 21:19:29, Matt Perry wrote: > I'm not very familiar with the ExternalPolicyLoader code, ...
7 years, 2 months ago (2013-10-17 09:16:36 UTC) #4
bartfab (slow)
https://codereview.chromium.org/27548004/diff/1/chrome/browser/extensions/external_provider_impl.cc File chrome/browser/extensions/external_provider_impl.cc (right): https://codereview.chromium.org/27548004/diff/1/chrome/browser/extensions/external_provider_impl.cc#newcode358 chrome/browser/extensions/external_provider_impl.cc:358: if (user && policy::IsDeviceLocalAccountUser(user->email(), NULL)) { On 2013/10/16 21:19:29, ...
7 years, 2 months ago (2013-10-17 09:16:45 UTC) #5
Joao da Silva
First pass at this monster CL. I think the overall structure is sound and this ...
7 years, 2 months ago (2013-10-17 14:57:54 UTC) #6
Matt Perry
I think the original author of the loader code left, so I'll just lgtm.
7 years, 2 months ago (2013-10-17 18:34:20 UTC) #7
bartfab (slow)
https://codereview.chromium.org/27548004/diff/1/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc File chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc (right): https://codereview.chromium.org/27548004/diff/1/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc#newcode22 chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc:22: char kExtensionInstallForcelist[] = "forcelist"; On 2013/10/17 14:57:54, Joao da ...
7 years, 2 months ago (2013-10-18 12:58:39 UTC) #8
Joao da Silva
lgtm https://codereview.chromium.org/27548004/diff/94001/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc File chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc (right): https://codereview.chromium.org/27548004/diff/94001/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc#newcode52 chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc:52: false /* wait_for_cache_initialization */)); two spaces before // ...
7 years, 2 months ago (2013-10-18 18:12:12 UTC) #9
bartfab (slow)
https://codereview.chromium.org/27548004/diff/94001/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc File chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc (right): https://codereview.chromium.org/27548004/diff/94001/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc#newcode52 chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc:52: false /* wait_for_cache_initialization */)); On 2013/10/18 18:12:12, Joao da ...
7 years, 2 months ago (2013-10-21 11:44:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/27548004/334001
7 years, 2 months ago (2013-10-21 11:48:52 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-21 12:32:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/27548004/664001
7 years, 2 months ago (2013-10-21 12:50:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/27548004/724001
7 years, 2 months ago (2013-10-21 13:07:07 UTC) #14
bartfab (slow)
Hi Joao, Could you take a quick look at the changes in patch set 6?
7 years, 2 months ago (2013-10-21 16:07:48 UTC) #15
bartfab (slow)
... and by patch set 6, I mean patch set 7.
7 years, 2 months ago (2013-10-21 16:08:14 UTC) #16
Joao da Silva
Still looks good, go ahead :-) If you find the time later I think it'd ...
7 years, 2 months ago (2013-10-21 16:41:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/27548004/954001
7 years, 2 months ago (2013-10-21 16:55:00 UTC) #18
commit-bot: I haz the power
Change committed as 229896
7 years, 2 months ago (2013-10-21 20:10:26 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/27548004/1184001
7 years, 2 months ago (2013-10-21 20:53:40 UTC) #20
commit-bot: I haz the power
7 years, 2 months ago (2013-10-21 21:08:55 UTC) #21
Message was sent while issue was closed.
Change committed as 229912

Powered by Google App Engine
This is Rietveld 408576698