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

Issue 264763002: Support remote installation of extensions and apps. (Closed)

Created:
6 years, 7 months ago by Marijn Kruisselbrink
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, haitaol+watch_chromium.org, albertb+watch_chromium.org, chromium-apps-reviews_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

Support remote installation of extensions and apps. To enable this support, the following things are changed: * ExtensionSyncData, and the ExtensionSpecifics protobuf have a new remote_install field, to mark a remotely installed extension. * A new DISABLE_REMOTE_INSTALL reason is added to track this state locally. * CrxInstaller::allow_silent_install is changed from a bool to a three-state enum, where the options are: - install after showing a permission prompt, - install and grant all permissions without a prompt and - install without a prompt and don't grant any permissions * AddExtensionDisabledError is modified to keep track of the disable reasons, and change the text that is displayed accordingly. * ExtensionInstallPrompt has a new prompt type with different text for remotely installed extensions. BUG=365737 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270900

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : add a first test, fix a bug #

Total comments: 10

Patch Set 4 : #

Total comments: 12

Patch Set 5 : #

Patch Set 6 : rebase #

Total comments: 4

Patch Set 7 : rebase #

Patch Set 8 : address comments #

Total comments: 5

Patch Set 9 : address comments #

Patch Set 10 : fix test #

Total comments: 2

Patch Set 11 : histogram owner #

Unified diffs Side-by-side diffs Delta from patch set Stats (+409 lines, -150 lines) Patch
M chrome/app/generated_resources.grd View 4 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/extensions/app_sync_data.h View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/app_sync_data.cc View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/crx_installer.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 5 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_disabled_ui.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_disabled_ui.cc View 1 2 3 4 5 9 chunks +65 lines, -21 lines 0 comments Download
M chrome/browser/extensions/extension_disabled_ui_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +53 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_install_prompt.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_install_prompt.cc View 1 2 3 4 5 6 7 8 5 chunks +83 lines, -62 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 3 chunks +20 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 12 chunks +46 lines, -20 lines 0 comments Download
M chrome/browser/extensions/extension_sync_data.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_sync_data.cc View 1 2 3 4 5 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_sync_service.cc View 1 2 3 4 5 6 4 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/extensions/pending_extension_info.h View 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/pending_extension_info.cc View 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/extensions/pending_extension_manager.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/pending_extension_manager.cc View 10 chunks +19 lines, -9 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater_unittest.cc View 1 2 3 4 5 6 4 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_apps_sync_test.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/themes/theme_syncable_service.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/extension_prefs.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M extensions/browser/extension_prefs.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/common/extension.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
Marijn Kruisselbrink
Still TODO, tests tests tests... And actually somehow running it against a sync server that ...
6 years, 7 months ago (2014-04-30 23:41:14 UTC) #1
Marijn Kruisselbrink
Also nothing is currently behind a flag, but I'm not sure what the point would ...
6 years, 7 months ago (2014-04-30 23:48:49 UTC) #2
not at google - send to devlin
still processing this. it's more code than I expected and there are a lot of ...
6 years, 7 months ago (2014-05-01 18:55:21 UTC) #3
Marijn Kruisselbrink
On 2014/05/01 18:55:21, kalman wrote: > still processing this. it's more code than I expected ...
6 years, 7 months ago (2014-05-01 22:36:56 UTC) #4
Marijn Kruisselbrink
On 2014/05/01 18:55:21, kalman wrote: > still processing this. it's more code than I expected ...
6 years, 7 months ago (2014-05-01 22:41:28 UTC) #5
not at google - send to devlin
On 2014/05/01 22:41:28, Marijn Kruisselbrink wrote: > On 2014/05/01 18:55:21, kalman wrote: > > still ...
6 years, 7 months ago (2014-05-01 22:43:55 UTC) #6
Yoyo Zhou
https://chromiumcodereview.appspot.com/264763002/diff/40001/chrome/browser/extensions/crx_installer.h File chrome/browser/extensions/crx_installer.h (right): https://chromiumcodereview.appspot.com/264763002/diff/40001/chrome/browser/extensions/crx_installer.h#newcode80 chrome/browser/extensions/crx_installer.h:80: GRANT_AFTER_PROMPT, // No silent install, show a prompt instead. ...
6 years, 7 months ago (2014-05-01 22:53:44 UTC) #7
Marijn Kruisselbrink
PTAL https://codereview.chromium.org/264763002/diff/40001/chrome/browser/extensions/crx_installer.h File chrome/browser/extensions/crx_installer.h (right): https://codereview.chromium.org/264763002/diff/40001/chrome/browser/extensions/crx_installer.h#newcode80 chrome/browser/extensions/crx_installer.h:80: GRANT_AFTER_PROMPT, // No silent install, show a prompt ...
6 years, 7 months ago (2014-05-05 20:45:35 UTC) #8
not at google - send to devlin
Yoyo has this, removing self as reviewer.
6 years, 7 months ago (2014-05-05 21:52:51 UTC) #9
Yoyo Zhou
mostly LGTM, but I don't have confidence in the behavior of our protos https://codereview.chromium.org/264763002/diff/40001/sync/protocol/extension_specifics.proto File ...
6 years, 7 months ago (2014-05-05 22:35:16 UTC) #10
not at google - send to devlin
apparently I have a comment from days ago. don't know whether it's relevant anymore but ...
6 years, 7 months ago (2014-05-09 14:58:52 UTC) #11
Marijn Kruisselbrink
https://codereview.chromium.org/264763002/diff/40001/sync/protocol/extension_specifics.proto File sync/protocol/extension_specifics.proto (right): https://codereview.chromium.org/264763002/diff/40001/sync/protocol/extension_specifics.proto#newcode40 sync/protocol/extension_specifics.proto:40: optional bool remote_install = 7; On 2014/05/05 22:35:16, Yoyo ...
6 years, 7 months ago (2014-05-14 23:30:01 UTC) #12
Marijn Kruisselbrink
+pkotwicz for chrome/browser/themes/
6 years, 7 months ago (2014-05-14 23:30:56 UTC) #13
not at google - send to devlin
Joel and/or Mustafa there is a question for you in there.
6 years, 7 months ago (2014-05-14 23:33:49 UTC) #14
pkotwicz
themes LGTM
6 years, 7 months ago (2014-05-14 23:37:02 UTC) #15
meacer
> Should this also show a prompt for permissionless > extensions if they were remotely ...
6 years, 7 months ago (2014-05-15 00:01:10 UTC) #16
Marijn Kruisselbrink
On 2014/05/15 00:01:10, Mustafa Emre Acer wrote: > Btw, can you install a theme or ...
6 years, 7 months ago (2014-05-15 17:05:02 UTC) #17
Marijn Kruisselbrink
+mpearson for tools/metrics/histograms/histograms.xml +zea for chrome/browser/sync/
6 years, 7 months ago (2014-05-15 17:16:06 UTC) #18
Mark P
https://codereview.chromium.org/264763002/diff/190027/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/264763002/diff/190027/tools/metrics/histograms/histograms.xml#newcode5919 tools/metrics/histograms/histograms.xml:5919: + <owner>Please list the metric's owners. Add more owner ...
6 years, 7 months ago (2014-05-15 21:59:51 UTC) #19
Nicolas Zea
lgtm
6 years, 7 months ago (2014-05-15 22:00:10 UTC) #20
Marijn Kruisselbrink
https://codereview.chromium.org/264763002/diff/190027/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/264763002/diff/190027/tools/metrics/histograms/histograms.xml#newcode5919 tools/metrics/histograms/histograms.xml:5919: + <owner>Please list the metric's owners. Add more owner ...
6 years, 7 months ago (2014-05-15 22:16:56 UTC) #21
Mark P
histograms.xml lgtm
6 years, 7 months ago (2014-05-15 22:38:42 UTC) #22
Marijn Kruisselbrink
The CQ bit was checked by mek@chromium.org
6 years, 7 months ago (2014-05-16 01:00:56 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mek@chromium.org/264763002/210001
6 years, 7 months ago (2014-05-16 01:01:47 UTC) #24
Marijn Kruisselbrink
The CQ bit was unchecked by mek@chromium.org
6 years, 7 months ago (2014-05-16 01:01:49 UTC) #25
Marijn Kruisselbrink
The CQ bit was checked by mek@chromium.org
6 years, 7 months ago (2014-05-16 01:01:51 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mek@chromium.org/264763002/210001
6 years, 7 months ago (2014-05-16 01:03:24 UTC) #27
commit-bot: I haz the power
Change committed as 270900
6 years, 7 months ago (2014-05-16 02:06:32 UTC) #28
aurimas (slooooooooow)
On 2014/05/16 02:06:32, I haz the power (commit-bot) wrote: > Change committed as 270900 This ...
6 years, 7 months ago (2014-05-16 23:22:11 UTC) #29
Marijn Kruisselbrink
6 years, 7 months ago (2014-05-16 23:51:26 UTC) #30
Message was sent while issue was closed.
On 2014/05/16 23:22:11, aurimas wrote:
> On 2014/05/16 02:06:32, I haz the power (commit-bot) wrote:
> > Change committed as 270900
> 
> This broke Android ARM64 builder:
>
http://build.chromium.org/p/chromium.fyi/builders/Android%20ARM64%20Builder%2...
> 
> extension_service_unittest.cc:3045
From other places in the code, this seems to be a compiler bug... I'll change it
the same way it got changed in that other spot. Is there a trybot for whatever
configuration this is, or will I just have to hope I'll have fixed it?

Powered by Google App Engine
This is Rietveld 408576698