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

Issue 406713002: Allow drag-and-drop of zipped extensions on chrome://extensions (Closed)

Created:
6 years, 5 months ago by elijahtaylor1
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, arv+watch_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Allow drag-and-drop of zipped extensions on chrome://extensions TEST=drag zip file extension to chrome://extensions BUG=395311 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288545

Patch Set 1 #

Total comments: 6

Patch Set 2 : use sandboxed unpacker to unpack zipfile #

Patch Set 3 : rebase #

Total comments: 4

Patch Set 4 : add zipfile installer #

Total comments: 3

Patch Set 5 : move temp dir creation to browser process #

Patch Set 6 : add test #

Total comments: 3

Patch Set 7 : use registryobserver, remove zipfileinstallerclient #

Total comments: 8

Patch Set 8 : feedback #

Patch Set 9 : no diff #

Patch Set 10 : rebase #

Patch Set 11 : fix test for chromeos #

Patch Set 12 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+413 lines, -31 lines) Patch
A chrome/browser/extensions/zipfile_installer.h View 1 2 3 4 5 6 7 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/browser/extensions/zipfile_installer.cc View 1 2 3 4 5 6 7 1 chunk +127 lines, -0 lines 0 comments Download
A chrome/browser/extensions/zipfile_installer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +137 lines, -0 lines 0 comments Download
M chrome/browser/resources/extensions/extensions.js View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_loader_handler.cc View 1 2 3 4 5 6 3 chunks +23 lines, -9 lines 1 comment Download
M chrome/browser/ui/webui/extensions/install_extension_handler.cc View 1 2 3 6 2 chunks +26 lines, -20 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/chrome_utility_extensions_messages.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/utility/extensions/extensions_handler.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/utility/extensions/extensions_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
elijahtaylor1
can I get early comments on whether this is an ok approach? https://codereview.chromium.org/406713002/diff/1/chrome/browser/extensions/unpacked_installer.cc File chrome/browser/extensions/unpacked_installer.cc ...
6 years, 5 months ago (2014-07-18 23:47:43 UTC) #1
asargent_no_longer_on_chrome
https://codereview.chromium.org/406713002/diff/1/chrome/browser/extensions/unpacked_installer.cc File chrome/browser/extensions/unpacked_installer.cc (right): https://codereview.chromium.org/406713002/diff/1/chrome/browser/extensions/unpacked_installer.cc#newcode186 chrome/browser/extensions/unpacked_installer.cc:186: if (!base::CreateTemporaryDirInDir( On 2014/07/18 23:47:43, elijahtaylor1 wrote: > I ...
6 years, 5 months ago (2014-07-22 22:51:02 UTC) #2
elijahtaylor1
+meacer, can you weigh in on our comments re: sandboxed unpacker? This is really just ...
6 years, 5 months ago (2014-07-23 00:19:07 UTC) #3
meacer
https://codereview.chromium.org/406713002/diff/1/chrome/browser/extensions/unpacked_installer.cc File chrome/browser/extensions/unpacked_installer.cc (right): https://codereview.chromium.org/406713002/diff/1/chrome/browser/extensions/unpacked_installer.cc#newcode202 chrome/browser/extensions/unpacked_installer.cc:202: if (!zip::Unzip(zip_path, temp_path)) { On 2014/07/23 00:19:07, elijahtaylor1 wrote: ...
6 years, 5 months ago (2014-07-23 00:32:15 UTC) #4
elijahtaylor1
PTAL. If the general direction is ok I'll split this CL up so I can ...
6 years, 4 months ago (2014-07-28 21:29:59 UTC) #5
meacer
Thanks. Would dropping a zip file to install still show the permission dialog? https://codereview.chromium.org/406713002/diff/40001/chrome/browser/extensions/sandboxed_unpacker.cc File ...
6 years, 4 months ago (2014-07-28 23:01:05 UTC) #6
asargent_no_longer_on_chrome
I'm worried that by introducing some special edge cases into UnpackedInstaller and SandboxedUnpacker, we're more ...
6 years, 4 months ago (2014-07-29 21:38:10 UTC) #7
elijahtaylor1
PTAL. If the general idea is good, I will add tests. I may need to ...
6 years, 4 months ago (2014-07-31 17:26:28 UTC) #8
elijahtaylor1
On 2014/07/28 23:01:05, Mustafa Emre Acer wrote: > Thanks. Would dropping a zip file to ...
6 years, 4 months ago (2014-07-31 17:29:48 UTC) #9
elijahtaylor1
https://codereview.chromium.org/406713002/diff/40001/chrome/browser/extensions/sandboxed_unpacker.cc File chrome/browser/extensions/sandboxed_unpacker.cc (right): https://codereview.chromium.org/406713002/diff/40001/chrome/browser/extensions/sandboxed_unpacker.cc#newcode265 chrome/browser/extensions/sandboxed_unpacker.cc:265: is_zipfile_ = true; On 2014/07/28 23:01:05, Mustafa Emre Acer ...
6 years, 4 months ago (2014-07-31 17:29:56 UTC) #10
asargent_no_longer_on_chrome
lgtm https://codereview.chromium.org/406713002/diff/60001/chrome/browser/extensions/zipfile_installer.cc File chrome/browser/extensions/zipfile_installer.cc (right): https://codereview.chromium.org/406713002/diff/60001/chrome/browser/extensions/zipfile_installer.cc#newcode49 chrome/browser/extensions/zipfile_installer.cc:49: host->SetExposedDir(temp_dir.DirName()); Instead of giving the host access to ...
6 years, 4 months ago (2014-07-31 19:59:23 UTC) #11
elijahtaylor1
PTAL I have a testing question if you could please advise. https://codereview.chromium.org/406713002/diff/60001/chrome/browser/extensions/zipfile_installer.cc File chrome/browser/extensions/zipfile_installer.cc (right): ...
6 years, 4 months ago (2014-08-06 00:31:54 UTC) #12
elijahtaylor1
forgot to mention, here's the test data files I'd like to land ahead of time ...
6 years, 4 months ago (2014-08-06 00:32:39 UTC) #13
asargent_no_longer_on_chrome
https://codereview.chromium.org/406713002/diff/100001/chrome/browser/extensions/zipfile_installer.cc File chrome/browser/extensions/zipfile_installer.cc (right): https://codereview.chromium.org/406713002/diff/100001/chrome/browser/extensions/zipfile_installer.cc#newcode85 chrome/browser/extensions/zipfile_installer.cc:85: // UnpackedInstaller::Create(extension_service_.get())->Load(unzipped_path); Maybe the fact that this line is ...
6 years, 4 months ago (2014-08-06 20:39:01 UTC) #14
elijahtaylor1
https://codereview.chromium.org/406713002/diff/100001/chrome/browser/extensions/zipfile_installer.cc File chrome/browser/extensions/zipfile_installer.cc (right): https://codereview.chromium.org/406713002/diff/100001/chrome/browser/extensions/zipfile_installer.cc#newcode85 chrome/browser/extensions/zipfile_installer.cc:85: // UnpackedInstaller::Create(extension_service_.get())->Load(unzipped_path); On 2014/08/06 20:39:01, Antony Sargent wrote: > ...
6 years, 4 months ago (2014-08-06 20:42:51 UTC) #15
elijahtaylor1
asargent: PTAL, test was re-written a bit miket: OWNERS for: chrome/browser/extensions/zipfile_installer.cc chrome/browser/extensions/zipfile_installer.h chrome/browser/extensions/zipfile_installer_unittest.cc chrome/browser/resources/extensions/extensions.js chrome/browser/ui/webui/extensions/extension_loader_handler.cc ...
6 years, 4 months ago (2014-08-07 17:02:17 UTC) #16
asargent_no_longer_on_chrome
new version lgtm w/ a few suggestions https://codereview.chromium.org/406713002/diff/120001/chrome/browser/extensions/zipfile_installer.cc File chrome/browser/extensions/zipfile_installer.cc (right): https://codereview.chromium.org/406713002/diff/120001/chrome/browser/extensions/zipfile_installer.cc#newcode83 chrome/browser/extensions/zipfile_installer.cc:83: UnpackedInstaller::Create(extension_service_.get())->Load(unzipped_path); nit: ...
6 years, 4 months ago (2014-08-07 17:28:25 UTC) #17
miket_OOO
OWNER LGTM
6 years, 4 months ago (2014-08-07 18:34:50 UTC) #18
jschuh
What's the flow on these new messages? Is the unzip request browser -> utility, and ...
6 years, 4 months ago (2014-08-07 20:57:59 UTC) #19
elijahtaylor1
On 2014/08/07 20:57:59, Justin Schuh wrote: > What's the flow on these new messages? Is ...
6 years, 4 months ago (2014-08-07 21:50:32 UTC) #20
jschuh
On 2014/08/07 21:50:32, elijahtaylor1 wrote: > On 2014/08/07 20:57:59, Justin Schuh wrote: > > What's ...
6 years, 4 months ago (2014-08-07 21:58:40 UTC) #21
elijahtaylor1
https://codereview.chromium.org/406713002/diff/120001/chrome/browser/extensions/zipfile_installer.cc File chrome/browser/extensions/zipfile_installer.cc (right): https://codereview.chromium.org/406713002/diff/120001/chrome/browser/extensions/zipfile_installer.cc#newcode83 chrome/browser/extensions/zipfile_installer.cc:83: UnpackedInstaller::Create(extension_service_.get())->Load(unzipped_path); On 2014/08/07 17:28:25, Antony Sargent wrote: > nit: ...
6 years, 4 months ago (2014-08-07 22:41:26 UTC) #22
elijahtaylor1
The CQ bit was checked by elijahtaylor@chromium.org
6 years, 4 months ago (2014-08-07 22:51:35 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elijahtaylor@chromium.org/406713002/160001
6 years, 4 months ago (2014-08-07 23:01:53 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-08 01:09:43 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-08 01:17:29 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/49645) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/44122) android_chromium_gn_compile_rel ...
6 years, 4 months ago (2014-08-08 01:17:30 UTC) #27
elijahtaylor1
The CQ bit was checked by elijahtaylor@chromium.org
6 years, 4 months ago (2014-08-08 17:17:41 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elijahtaylor@chromium.org/406713002/180001
6 years, 4 months ago (2014-08-08 17:20:01 UTC) #29
elijahtaylor1
The CQ bit was checked by elijahtaylor@chromium.org
6 years, 4 months ago (2014-08-08 20:27:29 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elijahtaylor@chromium.org/406713002/200001
6 years, 4 months ago (2014-08-08 20:28:32 UTC) #31
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-08 22:55:15 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-08 23:00:13 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_triggered_tests/builds/3946)
6 years, 4 months ago (2014-08-08 23:00:14 UTC) #34
elijahtaylor1
The CQ bit was checked by elijahtaylor@chromium.org
6 years, 4 months ago (2014-08-09 00:02:05 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elijahtaylor@chromium.org/406713002/220001
6 years, 4 months ago (2014-08-09 00:04:05 UTC) #36
commit-bot: I haz the power
Change committed as 288545
6 years, 4 months ago (2014-08-09 08:51:45 UTC) #37
Devlin
6 years, 4 months ago (2014-08-11 15:58:01 UTC) #38
Message was sent while issue was closed.
https://codereview.chromium.org/406713002/diff/220001/chrome/browser/ui/webui...
File chrome/browser/ui/webui/extensions/extension_loader_handler.cc (right):

https://codereview.chromium.org/406713002/diff/220001/chrome/browser/ui/webui...
chrome/browser/ui/webui/extensions/extension_loader_handler.cc:307:
failure->Set("reason", new base::StringValue(base::UTF8ToUTF16(error)));
This looks like a merge conflict resolution gone wrong, and I think this caused
crbug.com/402342.  Lemme know if you'll have time to push through a quick patch
(if not, I can).  Cheers! :)

Powered by Google App Engine
This is Rietveld 408576698