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

Issue 10452009: Improve the UI for disabling off-store extension install. (Closed)

Created:
8 years, 7 months ago by Aaron Boodman
Modified:
8 years, 7 months ago
Reviewers:
asanka, Yoyo Zhou
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, rdsmith+dwatch_chromium.org, asanka
Visibility:
Public.

Description

Improve the UI for disabling off-store extension install. Move the check later into install so that: 1) The download bar goes away. 2) There's an error message. 3) The same thing happens when double-clicking a crx, on systems that associate crx with Chrome. Also, made themes exempt from this policy since there is no danger in installing a theme. This left themes with a dangerous download bar that said 'Installing extensions, themes, and apps can harm your computer', which isn't even true for themes. It was only there to protect against clickjacking. Removed that and replaced with standard install dialog. Had to update a bunch of strings. BUG=55584 TEST=Run chrome with --enable-off-store-extension-install=0, navigate to a crx file. Should see error dialog. TBR=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=139217

Patch Set 1 #

Total comments: 2

Patch Set 2 : moar better #

Total comments: 10

Patch Set 3 : blech #

Patch Set 4 : derp #

Total comments: 2

Patch Set 5 : addressed comments, fixed tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -91 lines) Patch
M chrome/app/generated_resources.grd View 3 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 4 chunks +21 lines, -39 lines 0 comments Download
M chrome/browser/download/download_crx_util.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/download/download_crx_util.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/download/download_history.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/download/download_item_model.cc View 1 2 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/download/download_shelf_context_menu.cc View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc View 1 2 3 4 3 chunks +4 lines, -13 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui.cc View 1 2 chunks +18 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui_browsertest.cc View 1 2 3 4 3 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/extensions/webstore_installer.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Aaron Boodman
https://chromiumcodereview.appspot.com/10452009/diff/1/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (left): https://chromiumcodereview.appspot.com/10452009/diff/1/chrome/browser/download/chrome_download_manager_delegate.cc#oldcode306 chrome/browser/download/chrome_download_manager_delegate.cc:306: if (extensions::switch_utils::IsOffStoreInstallEnabled() || Removing this allows us to get ...
8 years, 7 months ago (2012-05-24 09:08:53 UTC) #1
Aaron Boodman
8 years, 7 months ago (2012-05-24 10:05:35 UTC) #2
asanka
https://chromiumcodereview.appspot.com/10452009/diff/3001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/10452009/diff/3001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode303 chrome/browser/download/chrome_download_manager_delegate.cc:303: if (IsExtensionDownload(item)) { Can you check if the ChromeDownloadManagerDelegate::IsExtensionDownload() ...
8 years, 7 months ago (2012-05-24 16:05:37 UTC) #3
Yoyo Zhou
https://chromiumcodereview.appspot.com/10452009/diff/3001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/10452009/diff/3001/chrome/app/generated_resources.grd#newcode4181 chrome/app/generated_resources.grd:4181: + <message name="IDS_EXTENSION_INSTALL_APP_PROMPT_TITLE" desc="Titlebar of the extension installation prompt ...
8 years, 7 months ago (2012-05-24 17:30:35 UTC) #4
Aaron Boodman
ptal https://chromiumcodereview.appspot.com/10452009/diff/3001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/10452009/diff/3001/chrome/app/generated_resources.grd#newcode4181 chrome/app/generated_resources.grd:4181: + <message name="IDS_EXTENSION_INSTALL_APP_PROMPT_TITLE" desc="Titlebar of the extension installation ...
8 years, 7 months ago (2012-05-24 23:55:37 UTC) #5
Yoyo Zhou
LGTM. I guess links from websites will be the most common place for that error ...
8 years, 7 months ago (2012-05-25 00:08:15 UTC) #6
asanka
Thanks for moving the IsExtensionDownload() method. The suggestions below are to make the state of ...
8 years, 7 months ago (2012-05-25 18:28:15 UTC) #7
Aaron Boodman
Good ideas, done.
8 years, 7 months ago (2012-05-27 07:41:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aa@chromium.org/10452009/12002
8 years, 7 months ago (2012-05-27 07:42:01 UTC) #9
commit-bot: I haz the power
8 years, 7 months ago (2012-05-27 09:23:30 UTC) #10
Try job failure for 10452009-12002 (retry) (retry) (retry) on linux_rel for step
"browser_tests".
It's a second try, previously, step "browser_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&...

Powered by Google App Engine
This is Rietveld 408576698