summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_ui_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Refactored SettingsFrontend and forwarding of calls to the backends.joaodasilva@chromium.org2012-07-191-5/+15
| | | | | | | | | | | | | Added a SettingsNamespaceFrontend interface for namespace frontends, that allows different namespaces to forward StorageCallbacks in their own way. The LOCAL and SYNC namespaces use an implementation that does the same as before, but the new MANAGED namespace can now be implemented using a ValueStore that loads settings from policies, in the UI thread. BUG=108992 TEST=Everything works as before, all tests are green Review URL: https://chromiumcodereview.appspot.com/10784035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147464 0039d316-1c4b-4281-b951-d872f2087c98
* Move ExtensionSystem into extensions namespacerdevlin.cronin@chromium.org2012-07-111-2/+3
| | | | | | | | | | BUG=134017, 117261 TEST= Review URL: https://chromiumcodereview.appspot.com/10626007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146196 0039d316-1c4b-4281-b951-d872f2087c98
* Make an ExtensionService and a ManagementPolicy available to the ↵pam@chromium.org2012-06-061-2/+31
| | | | | | | | | | | | | ExtensionSettingsHandler in ExtensionUITest unit tests. These are changes approved by aa@ in http://codereview.chromium.org/10382149/ but left out of the original checkin. BUG=117987 TEST=covered by unit tests Review URL: https://chromiumcodereview.appspot.com/10535005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140744 0039d316-1c4b-4281-b951-d872f2087c98
* Remove Extension::STRICT_ERROR_CHECKS, it was never used.aa@chromium.org2012-05-311-3/+2
| | | | | | | | TBR=jhawkins@chromium.org Review URL: https://chromiumcodereview.appspot.com/10451089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139830 0039d316-1c4b-4281-b951-d872f2087c98
* Move Extension into extensions namespaceaa@chromium.org2012-05-211-0/+1
| | | | | | | | | BUG=117262 TBR=aa@chromium.org Review URL: https://chromiumcodereview.appspot.com/10375021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138074 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor several callers that collect basic extension info.pam@chromium.org2012-03-291-10/+13
| | | | | | | | | | Combine the basic info collected by the extension UI, the new tab page's apps UI, and the chrome.management extension API into a method in Extension. Clean up and reduce the calling arguments for those callers, and make them more consistent. TEST=covered by unit_tests, browser_tests, and pyauto tests. BUG=119692 Review URL: https://chromiumcodereview.appspot.com/9837038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129611 0039d316-1c4b-4281-b951-d872f2087c98
* get rid of old options pagesestade@chromium.org2012-03-231-2/+1
| | | | | | | | | BUG=none TEST=manual, compile, migrated tests Review URL: https://chromiumcodereview.appspot.com/9814030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128406 0039d316-1c4b-4281-b951-d872f2087c98
* Break two classes defined in json_value_serializer.cc, .h into separate files.bbudge@chromium.org2012-02-261-2/+2
| | | | | | | | | This will allow the use of JSONStringValueSerializer in the NaCl sandbox. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9465030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123701 0039d316-1c4b-4281-b951-d872f2087c98
* Warn user in case extension delays network traffic too much.battre@chromium.org2011-10-111-1/+1
| | | | | | | | | | | | This CL adds a badge to the wrench menu and warning messages to chrome://extensions in case an extension delays network traffic too much and thereby causes a bad user experience. BUG=82618 TEST=Install an extension using the webRequest API in a debug build. In debug build the extension should delay the network traffic enough to cause warning messages. You can use https://adblockplus.org/development-builds/experimental-adblock-plus-for-chrome-builds-available-with-better-blocking for example. Review URL: http://codereview.chromium.org/8176001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104929 0039d316-1c4b-4281-b951-d872f2087c98
* Move json_value_serializer from content/common to base.dpranke@chromium.org2011-10-071-1/+1
| | | | | | | | | | R=darin@chromium.org BUG=92044 TEST= Review URL: http://codereview.chromium.org/8165009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104527 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the old chrome://extensions page, since the URL now redirects to the ↵finnur@chromium.org2011-09-231-2/+2
| | | | | | | | | | new Settings page. BUG=87377 TEST=None, the page is already inaccessible. Review URL: http://codereview.chromium.org/7976023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102473 0039d316-1c4b-4281-b951-d872f2087c98
* Move json_value_serializer to content\common since it's used by code in ↵jam@chromium.org2011-04-161-1/+1
| | | | | | | | | content now. TBR=avi Review URL: http://codereview.chromium.org/6875018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81857 0039d316-1c4b-4281-b951-d872f2087c98
* Remove content_scripts and permissions from detail JSON output.mihaip@chromium.org2011-04-041-5/+10
| | | | | | | | | | | | Neither seems to be used anywhere. BUG=none TEST=ExtensionUITest.* R=aa@chromium.org,finnur@chromium.org Review URL: http://codereview.chromium.org/6788026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80344 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a few more compile issues when using GCC 4.5rsleevi@chromium.org2011-04-031-2/+2
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6735022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80277 0039d316-1c4b-4281-b951-d872f2087c98
* Show extension load path for unpacked extensions.bolms@chromium.org2011-03-301-20/+120
| | | | | | | | | BUG=74619 TEST=Install unpacked extension, go to chrome://extensions, verify that the path is shown. Review URL: http://codereview.chromium.org/6695031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79901 0039d316-1c4b-4281-b951-d872f2087c98
* Replace bools in extension creation with flags.mihaip@chromium.org2011-03-291-2/+3
| | | | | | | | | | | | | | Turn require_key and strict_error_checks bool params of Extension:: InitFromValue, Extension::Create and extension_file_util::LoadExtension into a flags parameter. BUG=None TEST=compiles R=aa@chromium.org Review URL: http://codereview.chromium.org/6766002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79638 0039d316-1c4b-4281-b951-d872f2087c98
* Give a helpful warning message if a url patern contains a port.skerner@chromium.org2011-03-041-1/+1
| | | | | | | | | BUG=32160 TEST=ExtensionURLPatternTest.Ports,ExtensionManifestTest.* Review URL: http://codereview.chromium.org/2835034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76967 0039d316-1c4b-4281-b951-d872f2087c98
* Show crashed extensions on chrome://extensions.jennb@chromium.org2011-01-131-1/+1
| | | | | | | | | BUG=31535 TEST=updated JSON serialization tests, added check in browsertest, manual test using task manager to terminate an extension process Review URL: http://codereview.chromium.org/6158001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71263 0039d316-1c4b-4281-b951-d872f2087c98
* Unrevert again r63919: "Part 2 of immutable Extension refactor."mpcomplete@chromium.org2010-10-271-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | (Last landing broke chromeos and chromium linux builder.) I made Extension a refcounted object, and privitized the existing con/destructor and InitFromValue. The only way to get an Extension is to call a factory method. In the next CL, I plan to make the factory method return a const Extension, to guarantee that no one can modify the Extension object after creation. Note: There was a tricky part of this CL because of the difference in semantics between scoped_ptr and scoped_refptr. I had to be careful not to use ptr.release(), since that would result in leaks (an un-Released AddRef). BUG=56558 TEST=no functional change Original Review URL: http://codereview.chromium.org/3982001 TBR=aa Review URL: http://codereview.chromium.org/4119010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64139 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 63962 (broke chromeos and chromium linux builder) - Unrevert r63919: ↵thakis@chromium.org2010-10-261-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | "Part 2 of immutable Extension refactor." I made Extension a refcounted object, and privitized the existing con/destructor and InitFromValue. The only way to get an Extension is to call a factory method. In the next CL, I plan to make the factory method return a const Extension, to guarantee that no one can modify the Extension object after creation. Note: There was a tricky part of this CL because of the difference in semantics between scoped_ptr and scoped_refptr. I had to be careful not to use ptr.release(), since that would result in leaks (an un-Released AddRef). BUG=56558 TEST=no functional change Original Review URL: http://codereview.chromium.org/3982001 TBR=aa Review URL: http://codereview.chromium.org/4186002 TBR=mpcomplete@chromium.org Review URL: http://codereview.chromium.org/4130004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63976 0039d316-1c4b-4281-b951-d872f2087c98
* Unrevert r63919: "Part 2 of immutable Extension refactor."mpcomplete@chromium.org2010-10-261-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | I made Extension a refcounted object, and privitized the existing con/destructor and InitFromValue. The only way to get an Extension is to call a factory method. In the next CL, I plan to make the factory method return a const Extension, to guarantee that no one can modify the Extension object after creation. Note: There was a tricky part of this CL because of the difference in semantics between scoped_ptr and scoped_refptr. I had to be careful not to use ptr.release(), since that would result in leaks (an un-Released AddRef). BUG=56558 TEST=no functional change Original Review URL: http://codereview.chromium.org/3982001 TBR=aa Review URL: http://codereview.chromium.org/4186002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63962 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r63919 "Part 2 of immutable Extension refactor."mpcomplete@chromium.org2010-10-261-5/+3
| | | | | | | | | | | | Compile failure on Linux x64. BUG=56558 TEST=no functional change TBR=aa Review URL: http://codereview.chromium.org/4156002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63925 0039d316-1c4b-4281-b951-d872f2087c98
* Part 2 of immutable Extension refactor.mpcomplete@chromium.org2010-10-261-3/+5
| | | | | | | | | | | | | | | | | | | | I made Extension a refcounted object, and privitized the existing con/destructor and InitFromValue. The only way to get an Extension is to call a factory method. In the next CL, I plan to make the factory method return a const Extension, to guarantee that no one can modify the Extension object after creation. Note: There was a tricky part of this CL because of the difference in semantics between scoped_ptr and scoped_refptr. I had to be careful not to use ptr.release(), since that would result in leaks (an un-Released AddRef). BUG=56558 TEST=no functional change Review URL: http://codereview.chromium.org/3982001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63919 0039d316-1c4b-4281-b951-d872f2087c98
* Hide packed hosted apps in chrome://extensions .skerner@chromium.org2010-09-141-1/+1
| | | | | | | | | BUG=53222 TEST=Manualy installed extensions, hosted apps,a nd packaged apps. Review URL: http://codereview.chromium.org/3425001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59455 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for a "split" incognito behavior for extensions.mpcomplete@chromium.org2010-08-311-2/+2
| | | | | | | | | | | | | | | | - On by default for apps, off by default for extensions. - Split mode means "run incognito extensions in a separate process if the user says OK, and the two processes can only see their own profile." - Spanning mode is what we have now, and means "run a single extension process, but allow it to access both profiles if the user says OK." BUG=49232 BUG=49114 TEST=extensions still work in incognito when you check "Allow in Incognito". Review URL: http://codereview.chromium.org/3210007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58033 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land r56529, and add fixes for the browser tests on chromium os.cmasone@google.com2010-08-181-0/+2
| | | | | | | | | | | | | | | Add fixes for browser tests broken by r56529 Revert "Revert 56529 - [Chrome OS] Block the installation of extensions with NPAPI plugins" BUG=chromium-os:5454 TEST=browser tests, unit tests This reverts commit 8e3ffd2dab317dd7fb2d501353153d3e4dcc1c90. Review URL: http://codereview.chromium.org/3164026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56601 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 56529 - [Chrome OS] Block the installation of extensions with NPAPI ↵phajdan.jr@chromium.org2010-08-181-2/+0
| | | | | | | | | | | | | | plugins BUG=chromium-os:5454 TEST=try to install http://www.3djam.com/roozz/roozz-plugin.crx, see that it is rejected. Try to install https://chrome.google.com/extensions/detail/gofhjkjmkpinhpoiabjplobcaignabnl, see that it works. And...unit tests Review URL: http://codereview.chromium.org/3163013 TBR=cmasone@google.com Review URL: http://codereview.chromium.org/3174015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56573 0039d316-1c4b-4281-b951-d872f2087c98
* [Chrome OS] Block the installation of extensions with NPAPI pluginscmasone@google.com2010-08-181-0/+2
| | | | | | | | | BUG=chromium-os:5454 TEST=try to install http://www.3djam.com/roozz/roozz-plugin.crx, see that it is rejected. Try to install https://chrome.google.com/extensions/detail/gofhjkjmkpinhpoiabjplobcaignabnl, see that it works. And...unit tests Review URL: http://codereview.chromium.org/3163013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56529 0039d316-1c4b-4281-b951-d872f2087c98
* detect preferences errorserikkay@chromium.org2010-04-061-1/+1
| | | | | | | | | BUG=38352 TEST=none Review URL: http://codereview.chromium.org/1120006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43715 0039d316-1c4b-4281-b951-d872f2087c98
* Allow users to enable extensions in incognito. Requiresmpcomplete@chromium.org2010-02-251-2/+2
| | | | | | | | | | | | | --enable-experimental-extension-apis . The UI needs work. Tab and window events are hooked up so that they work with incognito tabs/windows when enabled. BUG=32365 BUG=36292 Review URL: http://codereview.chromium.org/657041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40057 0039d316-1c4b-4281-b951-d872f2087c98
* Extensions: file handling clean up.estade@chromium.org2009-12-181-1/+1
| | | | | | | | | | | | | | | - remove various invalid uses of ASCII functions - properly escape resource requests - clean up file path handling Some work remains to be done on the last bullet point but this is enough to fix the bug. BUG=30509 TEST=see bug Review URL: http://codereview.chromium.org/501046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34923 0039d316-1c4b-4281-b951-d872f2087c98
* CL is the same as http://codereview.chromium.org/173487, but had to be moved ↵cira@chromium.org2009-09-181-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | to new CL number because I switched machines. Implemented the rest of loading/parsing logic for extension i18n: 1. Loading message catalogs for default and application locale. 2. Parsing JSON and replacing placeholders with actual content within a message. 3. Creating unified dictionary (union of default and application dictionaries, where application dict. has priority for common messages). New class ExtensionMessageBundle holds new dictionary, and parses data. It's injected into Extension. ExtensionMessageHandler::ReplaceVariablesInString can replace both $placeholders$ and __MSG_messages__ in given string (HTML, manifest, actual message string...). Implemented actual manifest name/description replacement too, as an example. Extension is now pretty agnostic about localization, and this makes it easier to use message bundles with things that are not extensions... BUG=12131 Review URL: http://codereview.chromium.org/202063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26609 0039d316-1c4b-4281-b951-d872f2087c98
* Disable an extension when it is upgraded to a version that requires morempcomplete@chromium.org2009-08-141-2/+3
| | | | | | | | | | | | | 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
* Fix unit_test breakage from http://codereview.chromium.org/140018rafaelw@chromium.org2009-06-251-0/+3
| | | | | | | | R=sky Review URL: http://codereview.chromium.org/147169 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19288 0039d316-1c4b-4281-b951-d872f2087c98
* Change extension id format back to mp-decimal, and change theaa@chromium.org2009-06-131-8/+10
| | | | | | | | length to 32 chars (exactly 128 bits). Review URL: http://codereview.chromium.org/126074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18351 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused code from ExtensionsService.mpcomplete@google.com2009-05-261-1/+1
| | | | | | | | Move extension.* from browser to common, so it can be included by the utility process. Review URL: http://codereview.chromium.org/115716 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16880 0039d316-1c4b-4281-b951-d872f2087c98
* Add inspect links for all active views in chrome://extensions.aa@chromium.org2009-05-071-5/+18
| | | | | | | | | | | | | Also: * Add ID to the information in chrome://extensions. * Call ExtensionMessageService::RegisterExtension() for all RVHs, not just ExtensionHost. * Teach RVHD to be able to return the current URL. * Renamed "background" to "background_page" in the manifest. Review URL: http://codereview.chromium.org/113027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15481 0039d316-1c4b-4281-b951-d872f2087c98
* Try one more time to check in http://codereview.chromium.org/60112aa@chromium.org2009-04-081-1/+1
| | | | | | | | | | | | Added this test to the list of skipped purify tests as it is experience the same issue as ExtensionView test. I also found an unrelated memory leak and created a patch separately: http://codereview.chromium.org/63073 Review URL: http://codereview.chromium.org/63075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13369 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Implement chromium.self in content scripts..."aa@chromium.org2009-04-071-1/+1
| | | | | | | | | | This reverts commit 61ab30f52667e739602ab2af4fd8f2d8a0a2a2f0. Still seeing memory errors. Review URL: http://codereview.chromium.org/63056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13243 0039d316-1c4b-4281-b951-d872f2087c98
* Implement chromium.self in content scripts, so that developers don'taa@chromium.org2009-04-071-1/+1
| | | | | | | | | | | | | | | | | | | | | have to know and copy/paste their extension ID. This required moving the code that defaults the extension ID earlier in the load process. Also fixed some bugs: * fixed a bug that was causing all user scripts to get executed in the same context. * made the greasemonkey api only available in 'standalone' user scripts. * re-added the anonymous function wrapper that is supposed to wrap content scripts. Also added unit tests for the fixed bugs. Review URL: http://codereview.chromium.org/60112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13238 0039d316-1c4b-4281-b951-d872f2087c98
* Remove deprecated wstring ctor of JSONFileValueSerializer.phajdan.jr@chromium.org2009-04-031-1/+1
| | | | | | | | Switched callers to FilePath. Review URL: http://codereview.chromium.org/62009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13089 0039d316-1c4b-4281-b951-d872f2087c98
* chrome-ui://extensions/ is now populated with data collected from the ↵rafaelw@chromium.org2009-03-091-0/+106
ExtensionsService and ExtensionErrorReporter Review URL: http://codereview.chromium.org/39026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11233 0039d316-1c4b-4281-b951-d872f2087c98