summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_browsertest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Launch processes asynchronously so as not to block the UI thread. For now, ↵jam@chromium.org2009-11-181-7/+7
| | | | | | | | | renderer only, I'll take care of plugin/worker/utility processes in a followup change. (relanding 32203) BUG=6844 Review URL: http://codereview.chromium.org/397031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32264 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 32203,32204,32205 - Launch processes asynchronously so as not to ↵jam@chromium.org2009-11-181-7/+7
| | | | | | | | | | | block the UI thread. For now, renderer only, I'll take care of plugin/worker/utility processes in a followup change. BUG=6844 Review URL: http://codereview.chromium.org/397002 Review URL: http://codereview.chromium.org/402033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32238 0039d316-1c4b-4281-b951-d872f2087c98
* Launch processes asynchronously so as not to block the UI thread. For now, ↵jam@chromium.org2009-11-171-7/+7
| | | | | | | | | renderer only, I'll take care of plugin/worker/utility processes in a followup change. BUG=6844 Review URL: http://codereview.chromium.org/397002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32203 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for flaky browser tests as done by twiz and reviewed here:mad@chromium.org2009-11-041-5/+8
| | | | | | | | | | http://codereview.chromium.org/346044 BUG=26599 TEST=extension_popup_apitest.cc git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30982 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for to automation interface load install and load extensions.rogerta@chromium.org2009-10-201-0/+5
| | | | | | | | | TEST=None BUG=0 Review URL: http://codereview.chromium.org/274076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29586 0039d316-1c4b-4281-b951-d872f2087c98
* Correctly handle extension reloading in the task manager.phajdan.jr@chromium.org2009-10-201-0/+12
| | | | | | | | | BUG=18693 TEST=Added new tests to browser_tests. Review URL: http://codereview.chromium.org/300005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29498 0039d316-1c4b-4281-b951-d872f2087c98
* Add a browser test for extensions autoupdate.asargent@chromium.org2009-10-141-0/+25
| | | | | | | | | BUG=17826,19403 TEST=none Review URL: http://codereview.chromium.org/270019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28923 0039d316-1c4b-4281-b951-d872f2087c98
* Generate IDs for --load-extension by hashing the path insteadaa@chromium.org2009-10-061-0/+1
| | | | | | | | | | | | | of incrementing a static counter. BUG=21281 TEST=Load an unpacked extension from chrome://extensions/ that does not have an ID in its manifest. The resulting ID should be random-looking, not something like "aaaaaa". Review URL: http://codereview.chromium.org/256049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28095 0039d316-1c4b-4281-b951-d872f2087c98
* ExtensionApiTest improvements.rafaelw@chromium.org2009-09-251-5/+5
| | | | | | | | | | This fixes a race condition where ExtensionBrowserTest::WaitForExtensionHostsToLoad() could have exited before all hosts were loaded. It simplifies the Overrides test. It also adds some debug output for aiding the hunt for remaining flakiness. BUG=22668 Review URL: http://codereview.chromium.org/220039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27213 0039d316-1c4b-4281-b951-d872f2087c98
* Force page-action views to update after reloading an extension, by deletingpam@chromium.org2009-09-111-6/+34
| | | | | | | | | | | | | | | them all. Otherwise, since the view count is unchanged, the views continue to use stale extension information and the page-action icon fails to be displayed. Fix excessive timeout logging in WaitForPageActionVisibilityChangeTo(). BUG=http://crbug.com/21324 TEST=write page-action extension, load as unpacked, reload, verify that icon is shown on a matching page. Also covered by browser_tests unit test. Review URL: http://codereview.chromium.org/202027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25996 0039d316-1c4b-4281-b951-d872f2087c98
* Enable extensions by default.aa@chromium.org2009-08-291-2/+0
| | | | | | | | | BUG=20573 TEST=Install sample extensions without modifying command line flags. They should install (and run on next startup). Review URL: http://codereview.chromium.org/179032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24846 0039d316-1c4b-4281-b951-d872f2087c98
* override chrome:// URLs via extensions.erikkay@chromium.org2009-08-281-10/+13
| | | | | | | | | | Overrides are declared in an extension's manifest. The last one installed wins. However, we keep a list of those installed per page so that priority is preserved and so that uninstall will revert to a previous state. Review URL: http://codereview.chromium.org/174277 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24791 0039d316-1c4b-4281-b951-d872f2087c98
* Don't show extension disabled infobar when manually updatingaa@chromium.org2009-08-281-3/+15
| | | | | | | | | | extensions that increase privilges. BUG=20461 Review URL: http://codereview.chromium.org/174637 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24775 0039d316-1c4b-4281-b951-d872f2087c98
* Load extensions that have their manifest in the Prefs on the UI thread.mpcomplete@chromium.org2009-08-211-3/+3
| | | | | | | | | | | | | | | | There is some migration code for loading old extensions which we do on the UI thread as well, for simplicity. This will only happen the first time the user starts Chrome, so I think it's OK. Also cleaned up the EXTENSIONS_LOADED notification to send out a single extension, instead of a 1-element list of extensions. BUG=18293 TEST=loading extensions should still work Review URL: http://codereview.chromium.org/174208 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23997 0039d316-1c4b-4281-b951-d872f2087c98
* Show the extension install UI when the user clicks Reenable for a ↵mpcomplete@chromium.org2009-08-181-1/+1
| | | | | | | | | | | | | | | disabled-on-upgrade extension. Also fix a couple misc bugs with disabled extensions: - Fix a crash when trying to reenable an uninstalled disabled extension. - Fix a bug where upgrading a disabled extension would reenable it. BUG=12140 TEST=no Review URL: http://codereview.chromium.org/172006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23675 0039d316-1c4b-4281-b951-d872f2087c98
* Adds a copyright header to extension_browsertest.cc and fixes lint error.mpcomplete@chromium.org2009-08-141-0/+6
| | | | | | Review URL: http://codereview.chromium.org/171005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23499 0039d316-1c4b-4281-b951-d872f2087c98
* Disable an extension when it is upgraded to a version that requires morempcomplete@chromium.org2009-08-141-20/+31
| | | | | | | | | | | | | permissions then before, and prompt the user to re-enable. Incidentally, this required adding support for disabling extensions. BUG=12140 TEST=covered by unit tests Review URL: http://codereview.chromium.org/165414 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23480 0039d316-1c4b-4281-b951-d872f2087c98
* Add a rudamentary feed preview to the RSS extension. Itfinnur@chromium.org2009-07-091-0/+25
| | | | | | | | | | | | | | | | | | | | | doesn't handle inline HTML in the item description (it just dumps it as text) and the feed needs to be valid XML for it to show any preview, but it is better than nothing. We can easily change it to display the HTML but we want to (at some point) try to use a separate origin so that we can render the HTML code from untrusted sources safely. Also fix a bug in the image tracker. It should not try to communicate with the view if the view has gone away (which was the whole point of the image tracker...) BUG=None TEST=Install the extension, browse to a page with a feed and click onthe rss icon in the Omnibox. An interstitial page should appear with a preview of the feed. Review URL: http://codereview.chromium.org/155180 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20316 0039d316-1c4b-4281-b951-d872f2087c98
* Aha, I think this was racing because INSTALLED is actually firedaa@chromium.org2009-07-081-7/+2
| | | | | | | | | | | | | before LOADED. Frequently, this didn't matter because we post a task to the message loop to quit and usually this would get queued after the LOADED message. But it is also possible for us to queue the quit task first, I think. TBR=mpcomplete git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20133 0039d316-1c4b-4281-b951-d872f2087c98
* Add some more logging. Still trying to figure out flakey test.aa@chromium.org2009-07-081-3/+20
| | | | | | TBR=mpcomplete git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20126 0039d316-1c4b-4281-b951-d872f2087c98
* Add some logging to a flakey browsertest to debug.aa@chromium.org2009-07-081-2/+11
| | | | | | Review URL: http://codereview.chromium.org/149291 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20103 0039d316-1c4b-4281-b951-d872f2087c98
* Add an ExtensionBrowserTest base class that allows in-process browser tests ↵aa@chromium.org2009-07-041-152/+95
| | | | | | | | of extensions using ExtensionsService directly, rather than TestExtensionLoaded. Use it to re-enable some old browser tests that had been disabled. Review URL: http://codereview.chromium.org/150213 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19930 0039d316-1c4b-4281-b951-d872f2087c98
* Move render_view_host_manager* and site_instance* from tab_contents to ↵brettw@chromium.org2009-06-291-1/+1
| | | | | | | | renderer_host. Review URL: http://codereview.chromium.org/150011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19481 0039d316-1c4b-4281-b951-d872f2087c98
* Change ExtensionHost to use notificationserikkay@chromium.org2009-06-261-1/+1
| | | | | | | | | | | rather than direct communication with ExtensionProcessManager. This simplifies ownership and lifetime issues which allows me to also revert the change that made ExtensionProcessManager owned by ExtensionsService. Review URL: http://codereview.chromium.org/147208 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19370 0039d316-1c4b-4281-b951-d872f2087c98
* Refactored ExtensionsPrefs to store paths relative to the extensions install ↵rafaelw@chromium.org2009-06-251-9/+12
| | | | | | | | | | | directory. Fix & reenabled two extensions_service unit_tests. R=erikkay BUG=14714 Review URL: http://codereview.chromium.org/140018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19285 0039d316-1c4b-4281-b951-d872f2087c98
* The Provider for External Extensions no longer usesfinnur@chromium.org2009-06-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the prefs file, but instead reads a preferences file (a json file called external_extensions.json). This file specifies what external extensions we installed (shipped with Chrome) and the extension system takes care of installing them. Having this in a separate file makes the upgrade scenario easier, since we can during upgrade simply blow away this file and replace it (and not have to worry about merging/loosing user specified data). The extension system will read the file, and figure out whether any extension needs to be upgraded based on the information provided. Now, all external providers fetch data on the file thread instead of reading and copying preferences on the UI thread and posting them to the file thread. BUG=http://crbug.com/14201 TEST=Covered by unit test. Review URL: http://codereview.chromium.org/144018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19264 0039d316-1c4b-4281-b951-d872f2087c98
* Disabling some browser tests that fail, as part of deploying the browser ↵jcampan@chromium.org2009-06-231-2/+4
| | | | | | | | | | tests to the build bot. BUG=None TEST=Run the browser tests. Review URL: http://codereview.chromium.org/146042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19039 0039d316-1c4b-4281-b951-d872f2087c98
* Disabling a test (bug filed) that is crashing (I am not sure what the ↵jcampan@chromium.org2009-06-231-1/+2
| | | | | | | | | | correct fix is). BUG=None TEST=None Review URL: http://codereview.chromium.org/145023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19025 0039d316-1c4b-4281-b951-d872f2087c98
* Move extension view classes from browser/extensions to browser/views/extensions.erikkay@google.com2009-06-231-1/+1
| | | | | | | | | BUG=11650 TEST=none Review URL: http://codereview.chromium.org/140010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19019 0039d316-1c4b-4281-b951-d872f2087c98
* Close all browsers during InProcessBrowserTest cleanup, not just the main one.erikkay@google.com2009-06-161-7/+0
| | | | | | | | | | BUG=none TEST=ExtensionViewTest.Incognito Review URL: http://codereview.chromium.org/126175 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18466 0039d316-1c4b-4281-b951-d872f2087c98
* Disable extensions in incognito mode.mpcomplete@google.com2009-06-111-0/+173
Add a browsertest to make sure we don't crash with an incognito window open. Had to finagle utility_process_host to make it work in a browsertest. BUG=12326 TEST=none Review URL: http://codereview.chromium.org/118476 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18116 0039d316-1c4b-4281-b951-d872f2087c98