Remove --install-from-webstore and --limited-install-from-webstore
commit462b2fbc2e486d47ab682770418fa6deacfe67be
authorrdevlin.cronin <rdevlin.cronin@chromium.org>
Thu, 2 Oct 2014 18:32:52 +0000 (2 11:32 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 2 Oct 2014 18:33:55 +0000 (2 18:33 +0000)
tree78511821a2112550d53c60417d3ca3c4748668a2
parent67d86f63228f12ecd59762ef44c190c51a37823d
Remove --install-from-webstore and --limited-install-from-webstore

Both these switches should be removed, as they allow malware
to potentially install extensions on a user's computer.
Since the --install-from-webstore switch is also being used
to install ephemeral apps, rename it to
--install-ephemeral-app-from-webstore, and ensure that this
only works on installed ephemeral apps on Windows. (This
has sufficient checks in place, such as an extension of
the same ID already being installed, that this is safe.)

BUG=410833

Review URL: https://codereview.chromium.org/617833003

Cr-Commit-Position: refs/heads/master@{#297868}
chrome/browser/extensions/extension_service.cc
chrome/browser/extensions/startup_helper.cc
chrome/browser/extensions/startup_helper.h
chrome/browser/extensions/webstore_startup_installer_browsertest.cc
chrome/browser/ui/startup/startup_browser_creator.cc
chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc
chrome/common/chrome_result_codes.h
chrome/common/chrome_switches.cc
chrome/common/chrome_switches.h