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

Issue 2855009: Only allow installation of extensions/apps with gallery update url via download from gallery (Closed)

Created:
10 years, 6 months ago by rafaelw
Modified:
9 years, 7 months ago
Reviewers:
tkent, Aaron Boodman, akalin
CC:
chromium-reviews, Erik does not do reviews, pam+watch_chromium.org, ben+cc_chromium.org, Aaron Boodman, jam+cc_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Only allow installation of extensions/apps with gallery update url via download from gallery BUG=45542 TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50333

Patch Set 1 #

Patch Set 2 : cr comments #

Total comments: 1

Patch Set 3 : cr changes #

Total comments: 4

Patch Set 4 : cr changes #

Total comments: 3

Patch Set 5 : name change #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -30 lines) Patch
M chrome/app/generated_resources.grd View 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/app_launcher_handler.cc View 3 4 3 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 2 chunks +12 lines, -0 lines 2 comments Download
M chrome/browser/extensions/extension_updater.cc View 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extensions_ui.cc View 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/common/extensions/extension.h View 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 4 2 chunks +11 lines, -3 lines 0 comments Download
M chrome/common/extensions/extension_constants.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_constants.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/user_script_slave.cc View 4 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
rafaelw
Here's the main chunk of this. Questions: 1) Do we want to either wait on ...
10 years, 6 months ago (2010-06-17 18:06:35 UTC) #1
Aaron Boodman
On 2010/06/17 18:06:35, rafaelw wrote: > Here's the main chunk of this. Questions: > > ...
10 years, 6 months ago (2010-06-17 21:41:25 UTC) #2
rafaelw
done.
10 years, 6 months ago (2010-06-18 01:23:26 UTC) #3
Aaron Boodman
LGTM http://codereview.chromium.org/2855009/diff/2002/4001 File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/2855009/diff/2002/4001#newcode3376 chrome/app/generated_resources.grd:3376: <message name="IDS_EXTENSION_DISALLOW_NON_DOWNLOADED_GALLERY_INSTALLS" desc="Error displayed when an extension that ...
10 years, 6 months ago (2010-06-18 01:36:13 UTC) #4
rafaelw1
On Thu, Jun 17, 2010 at 6:36 PM, <aa@chromium.org> wrote: > LGTM > > > ...
10 years, 6 months ago (2010-06-18 02:37:08 UTC) #5
Aaron Boodman
On Thu, Jun 17, 2010 at 7:37 PM, Rafael Weinstein <rafaelw@google.com> wrote > Sorry to ...
10 years, 6 months ago (2010-06-18 03:42:32 UTC) #6
rafaelw
done
10 years, 6 months ago (2010-06-18 21:03:54 UTC) #7
Aaron Boodman
Sorry for all the nits. http://codereview.chromium.org/2855009/diff/13001/14002 File chrome/browser/dom_ui/app_launcher_handler.cc (right): http://codereview.chromium.org/2855009/diff/13001/14002#newcode104 chrome/browser/dom_ui/app_launcher_handler.cc:104: std::string gallery_url = extension_urls::kGalleryBrowsePrefix; ...
10 years, 6 months ago (2010-06-18 21:10:38 UTC) #8
rafaelw
no worries. done. http://codereview.chromium.org/2855009/diff/13001/14002 File chrome/browser/dom_ui/app_launcher_handler.cc (right): http://codereview.chromium.org/2855009/diff/13001/14002#newcode104 chrome/browser/dom_ui/app_launcher_handler.cc:104: std::string gallery_url = extension_urls::kGalleryBrowsePrefix; On 2010/06/18 ...
10 years, 6 months ago (2010-06-18 22:06:11 UTC) #9
Aaron Boodman
LGTM w/ final nit below. http://codereview.chromium.org/2855009/diff/20001/9008 File chrome/common/chrome_switches.cc (left): http://codereview.chromium.org/2855009/diff/20001/9008#oldcode1000 chrome/common/chrome_switches.cc:1000: // DO NOT ADD ...
10 years, 6 months ago (2010-06-18 22:14:48 UTC) #10
rafaelw
http://codereview.chromium.org/2855009/diff/20001/9011 File chrome/common/extensions/extension.h (right): http://codereview.chromium.org/2855009/diff/20001/9011#newcode218 chrome/common/extensions/extension.h:218: static std::string AppsGalleryBrowsePrefix(); On 2010/06/18 22:14:49, Aaron Boodman wrote: ...
10 years, 6 months ago (2010-06-18 22:22:56 UTC) #11
tkent
rafaelw committed this as r50333. I rolled it out by r50334 because of multiple test ...
10 years, 6 months ago (2010-06-21 05:00:02 UTC) #12
Aaron Boodman
Those failures are due to grd changes. It would have gone green on next build. ...
10 years, 6 months ago (2010-06-21 05:10:52 UTC) #13
akalin
drive-by (I ran into a crash caused by this) http://codereview.chromium.org/2855009/diff/22001/23003 File chrome/browser/extensions/crx_installer.cc (right): http://codereview.chromium.org/2855009/diff/22001/23003#newcode144 chrome/browser/extensions/crx_installer.cc:144: ...
10 years, 6 months ago (2010-06-24 01:09:57 UTC) #14
akalin
Also this breaks extensions sync (and maybe auto-updating?) because the auto-updater has an http URL. ...
10 years, 6 months ago (2010-06-24 01:23:03 UTC) #15
akalin
Also worth noting that a similar check occurs in ExtensionsService::IsDownloadFromGallery On 2010/06/24 01:23:03, akalin wrote: ...
10 years, 6 months ago (2010-06-24 01:27:46 UTC) #16
rafaelw
10 years, 6 months ago (2010-06-24 02:27:50 UTC) #17
http://codereview.chromium.org/2855009/diff/22001/23003
File chrome/browser/extensions/crx_installer.cc (right):

http://codereview.chromium.org/2855009/diff/22001/23003#newcode144
chrome/browser/extensions/crx_installer.cc:144:
ReportFailureFromUIThread(l10n_util::GetStringFUTF8(
Thanks for the catch. Done here: http://codereview.chromium.org/2867023

On 2010/06/24 01:09:58, akalin wrote:
> This should be ReportFailureFromFileThread()

Powered by Google App Engine
This is Rietveld 408576698