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

Issue 2108853002: Restrict use of two app-launching command line flags (Closed)

Created:
4 years, 5 months ago by proberge
Modified:
4 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Restrict use of two app-launching command line flags Mitigate abuse of the load-and-launch-app and load-apps flags by disallowing loading of non-app extensions from these flags. For the official build, the flags no-op instead of showing an error popup to avoid giving users with hijacked shortcuts a bad time (the error message is shown then Chrome shuts down) BUG=624098 Committed: https://crrev.com/93c60cd3ef5908984e173112dc09345bb5714036 Cr-Commit-Position: refs/heads/master@{#407824}

Patch Set 1 #

Patch Set 2 : Prevent loading of extensions from the app flags instead #

Patch Set 3 : revert change to documentation file #

Total comments: 7

Patch Set 4 : Add a browsertest #

Total comments: 2

Patch Set 5 : Add /* explanation */ for the bool parameter #

Total comments: 20

Patch Set 6 : Apply mws' comments #

Total comments: 10

Patch Set 7 : Fix last nits #

Patch Set 8 : Use ASCIIToUTF16 to make mac tests happy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -19 lines) Patch
M apps/DEPS View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M apps/app_load_service.cc View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M apps/load_and_launch_browsertest.cc View 1 2 3 4 5 6 7 5 chunks +62 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_system_impl.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/unpacked_installer.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/unpacked_installer.cc View 1 2 3 3 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 42 (17 generated)
proberge
4 years, 5 months ago (2016-06-28 19:07:14 UTC) #3
Devlin
I'm still a little wary of doing this with no real data around how frequently ...
4 years, 5 months ago (2016-06-28 20:08:40 UTC) #4
proberge
On 2016/06/28 20:08:40, Devlin wrote: > I'm still a little wary of doing this with ...
4 years, 5 months ago (2016-06-28 20:31:54 UTC) #6
proberge
PTAL
4 years, 5 months ago (2016-06-29 14:41:07 UTC) #9
Devlin
Also, can we add a test? https://codereview.chromium.org/2108853002/diff/40001/chrome/browser/extensions/unpacked_installer.cc File chrome/browser/extensions/unpacked_installer.cc (right): https://codereview.chromium.org/2108853002/diff/40001/chrome/browser/extensions/unpacked_installer.cc#newcode160 chrome/browser/extensions/unpacked_installer.cc:160: if (only_allow_apps && ...
4 years, 5 months ago (2016-06-29 14:59:54 UTC) #10
proberge
https://codereview.chromium.org/2108853002/diff/40001/chrome/browser/extensions/unpacked_installer.cc File chrome/browser/extensions/unpacked_installer.cc (right): https://codereview.chromium.org/2108853002/diff/40001/chrome/browser/extensions/unpacked_installer.cc#newcode160 chrome/browser/extensions/unpacked_installer.cc:160: if (only_allow_apps && !extension()->is_app()) { On 2016/06/29 14:59:54, Devlin ...
4 years, 5 months ago (2016-06-29 20:56:49 UTC) #12
proberge
On 2016/06/29 14:59:54, Devlin wrote: > Also, can we add a test? > > https://codereview.chromium.org/2108853002/diff/40001/chrome/browser/extensions/unpacked_installer.cc ...
4 years, 5 months ago (2016-06-29 20:57:02 UTC) #13
Devlin
lgtm. I still think that the allowed_types change would be worthwhile, but I won't block ...
4 years, 5 months ago (2016-06-29 21:04:15 UTC) #14
proberge
Trying a different reviewer
4 years, 5 months ago (2016-07-20 18:14:27 UTC) #18
asargent_no_longer_on_chrome
On 2016/07/20 18:14:27, proberge wrote: > Trying a different reviewer Looks like Devlin already gave ...
4 years, 5 months ago (2016-07-20 19:08:21 UTC) #19
proberge
On 2016/07/20 19:08:21, Antony Sargent wrote: > On 2016/07/20 18:14:27, proberge wrote: > > Trying ...
4 years, 5 months ago (2016-07-20 19:14:26 UTC) #20
asargent_no_longer_on_chrome
lgtm https://codereview.chromium.org/2108853002/diff/60001/apps/app_load_service.cc File apps/app_load_service.cc (right): https://codereview.chromium.org/2108853002/diff/60001/apps/app_load_service.cc#newcode87 apps/app_load_service.cc:87: true); optional: sometimes it can aid readability to ...
4 years, 5 months ago (2016-07-20 21:33:32 UTC) #21
proberge
+msw for dependency on simple_message_box_internal.h: You need LGTM from owners of depends-on paths in DEPS ...
4 years, 5 months ago (2016-07-21 14:59:43 UTC) #23
msw
I have some tangential comments and questions; hope that's alright. https://codereview.chromium.org/2108853002/diff/80001/apps/load_and_launch_browsertest.cc File apps/load_and_launch_browsertest.cc (right): https://codereview.chromium.org/2108853002/diff/80001/apps/load_and_launch_browsertest.cc#newcode120 ...
4 years, 5 months ago (2016-07-21 17:13:50 UTC) #24
proberge
Thanks for the great comments @msw! I appreciate that you spent extra time reviewing this ...
4 years, 4 months ago (2016-07-25 20:40:54 UTC) #25
msw
lgtm with more minor nits. https://codereview.chromium.org/2108853002/diff/100001/apps/load_and_launch_browsertest.cc File apps/load_and_launch_browsertest.cc (right): https://codereview.chromium.org/2108853002/diff/100001/apps/load_and_launch_browsertest.cc#newcode23 apps/load_and_launch_browsertest.cc:23: #include "testing/gmock/include/gmock/gmock.h" nit: remove ...
4 years, 4 months ago (2016-07-25 23:44:46 UTC) #26
proberge
https://codereview.chromium.org/2108853002/diff/100001/apps/load_and_launch_browsertest.cc File apps/load_and_launch_browsertest.cc (right): https://codereview.chromium.org/2108853002/diff/100001/apps/load_and_launch_browsertest.cc#newcode23 apps/load_and_launch_browsertest.cc:23: #include "testing/gmock/include/gmock/gmock.h" On 2016/07/25 23:44:46, msw wrote: > nit: ...
4 years, 4 months ago (2016-07-26 15:09:57 UTC) #27
proberge
https://codereview.chromium.org/2108853002/diff/100001/apps/load_and_launch_browsertest.cc File apps/load_and_launch_browsertest.cc (right): https://codereview.chromium.org/2108853002/diff/100001/apps/load_and_launch_browsertest.cc#newcode23 apps/load_and_launch_browsertest.cc:23: #include "testing/gmock/include/gmock/gmock.h" On 2016/07/25 23:44:46, msw wrote: > nit: ...
4 years, 4 months ago (2016-07-26 15:09:58 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2108853002/120001
4 years, 4 months ago (2016-07-26 15:10:42 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/240410)
4 years, 4 months ago (2016-07-26 15:24:40 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2108853002/140001
4 years, 4 months ago (2016-07-26 15:39:12 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-07-26 16:22:32 UTC) #38
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/93c60cd3ef5908984e173112dc09345bb5714036 Cr-Commit-Position: refs/heads/master@{#407824}
4 years, 4 months ago (2016-07-26 16:24:47 UTC) #40
proberge
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/2180853004/ by proberge@chromium.org. ...
4 years, 4 months ago (2016-07-26 16:54:54 UTC) #41
robliao
4 years, 4 months ago (2016-07-26 16:57:51 UTC) #42
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2181393002/ by robliao@chromium.org.

The reason for reverting is: Compile Error
chrome/browser/extensions/unpacked_installer.cc:43:12: error: unused variable
'kUnpackedExtensionInsteadOfAppError' [-Werror,-Wunused-const-variable]

On Official Builds.

Powered by Google App Engine
This is Rietveld 408576698