summaryrefslogtreecommitdiffstats
path: root/chrome/common
Commit message (Collapse)AuthorAgeFilesLines
* Make all the things use cert_test_util.h.mattm@chromium.org2012-03-311-49/+21
| | | | | | | | | BUG=none TEST=trybots Review URL: https://chromiumcodereview.appspot.com/9960002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130018 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r12998 - it broke some media/mime-related layout tests.dpranke@chromium.org2012-03-312-2/+1
| | | | | | | | TBR=pkasting@chromium.org, scherkus@chromium.org Review URL: https://chromiumcodereview.appspot.com/9950039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130011 0039d316-1c4b-4281-b951-d872f2087c98
* Add non-syncable pref for mouse sensitivity.achuith@chromium.org2012-03-312-0/+4
| | | | | | | | BUG=119647 TEST=Sensitivity slider for mouse works. Review URL: https://chromiumcodereview.appspot.com/9968028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130010 0039d316-1c4b-4281-b951-d872f2087c98
* When input is "" (or " " with trim_whitespace true), SplitString() should ↵pkasting@chromium.org2012-03-302-1/+2
| | | | | | | | | | | | | | | | return an empty vector, not a vector of one empty string. Brett and I discussed this for a while and felt this would be wise, whereas dropping all empty segments entirely (e.g. converting "a,,b" to a vector of two elements instead of three) was probably unwise. This also simplifies the code some. Fixing this also required changing the code in mime_util.cc to handle empty vectors to "are codecs valid" oracle functions (in which case we return false). I also fixed some style issues there. It also required avoiding passing the empty string in a test in extension_api_unittest.cc; Aaron assures me that this code is not expected to be defensive against such inputs, but at his suggestion I also added some CHECK()s to the API. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9960004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129998 0039d316-1c4b-4281-b951-d872f2087c98
* Create an abstract flow class that abstracts the following logical steps of ↵munjal@chromium.org2012-03-303-0/+541
| | | | | | | | | | | | | | | | | | | calling an OAuth2 enabled API: - Try existing access token to call the API. - If that does not work, generate a new one. - Try the new access token This abstract class should be used by any code that calls OAuth2 APIs. Examples: - Getting profile picture - Cloud print - App notifications Future CLs coming to replace existing duplicate code in individual places to use this class. Review URL: https://chromiumcodereview.appspot.com/9937004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129970 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 129946 - Enable password generation only if sync for passwords is ↵mihaip@chromium.org2012-03-301-5/+0
| | | | | | | | | | | | | | enabled. BUG=114092 TEST=Ran corresponding unit and browser tests. Review URL: https://chromiumcodereview.appspot.com/9834082 TBR=gcasto@chromium.org Review URL: https://chromiumcodereview.appspot.com/9956041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129963 0039d316-1c4b-4281-b951-d872f2087c98
* Enable password generation only if sync for passwords is enabled.gcasto@chromium.org2012-03-301-0/+5
| | | | | | | | | BUG=114092 TEST=Ran corresponding unit and browser tests. Review URL: https://chromiumcodereview.appspot.com/9834082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129946 0039d316-1c4b-4281-b951-d872f2087c98
* Add missing license headers to extension schemas.vandebo@chromium.org2012-03-305-0/+20
| | | | | | | | | | BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/9923019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129933 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl validation caching: plumb through HMAC key and version info.ncbray@google.com2012-03-301-1/+3
| | | | | | | | | BUG= http://code.google.com/p/nativeclient/issues/detail?id=2515 TEST= Run NaCl w/ NACL_VALIDATION_CACHE=1 Review URL: https://chromiumcodereview.appspot.com/9863012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129920 0039d316-1c4b-4281-b951-d872f2087c98
* Added a protobuf definition that describes Chrome experiment state.stevet@chromium.org2012-03-301-0/+16
| | | | | | | | | | R=isherman@chromium.org BUG=119321 TEST=none Review URL: http://codereview.chromium.org/9816016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129868 0039d316-1c4b-4281-b951-d872f2087c98
* Remove deprecated extension source on mac.skerner@chromium.org2012-03-304-25/+6
| | | | | | | | | | | As discussed on the bug, this will be committed right after a stable release is cut, so that the change is in the dev channel for a full six weeks. BUG=98675 TEST=none Review URL: https://chromiumcodereview.appspot.com/9610007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129849 0039d316-1c4b-4281-b951-d872f2087c98
* Remove dead code.cevans@chromium.org2012-03-301-11/+0
| | | | | | | TBR=cpu Review URL: https://chromiumcodereview.appspot.com/9969005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129825 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 129775 - Remove plug-in infobar experiment, basically a revert of the ↵cevans@chromium.org2012-03-301-0/+11
| | | | | | | | | | | | | | revisions noted in the bug. Revert was done manually due to refactoring, etc. BUG=85988 Review URL: https://chromiumcodereview.appspot.com/9802030 TBR=cevans@chromium.org Review URL: https://chromiumcodereview.appspot.com/9963003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129777 0039d316-1c4b-4281-b951-d872f2087c98
* Remove plug-in infobar experiment, basically a revert of the revisions notedcevans@chromium.org2012-03-301-11/+0
| | | | | | | | | in the bug. Revert was done manually due to refactoring, etc. BUG=85988 Review URL: https://chromiumcodereview.appspot.com/9802030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129775 0039d316-1c4b-4281-b951-d872f2087c98
* Remove code for kTalkService since its no longer used.rogerta@chromium.org2012-03-302-3/+0
| | | | | | | | | | BUG=None TEST=None, removing code that is not used Review URL: http://codereview.chromium.org/9802042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129754 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused DIR_SHARED_RESOURCES enum value.mihaip@chromium.org2012-03-302-7/+0
| | | | | | | | | | There have been no uses of it since r50761. R=erg@chromium.org Review URL: https://chromiumcodereview.appspot.com/9911021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129731 0039d316-1c4b-4281-b951-d872f2087c98
* nss: Fix GetCertType returning SERVER_CERT for explicitly distrusted CA certs.mattm@chromium.org2012-03-291-0/+101
| | | | | | | | | | | (Based on wtc's patch from crbug.com/96654.) BUG=96654 TEST=X509CertificateModelTest.GetTypeCA Review URL: https://chromiumcodereview.appspot.com/9875010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129662 0039d316-1c4b-4281-b951-d872f2087c98
* Gesture recognition constants should all be stored in the ↵tdresser@chromium.org2012-03-292-21/+50
| | | | | | | | | | | | GestureConfiguration object. BUG=119086 TEST=GestureRecognizerTest.* Review URL: http://codereview.chromium.org/9751011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129649 0039d316-1c4b-4281-b951-d872f2087c98
* Remove remnants of the identity permission, attempt #2.jstritar@chromium.org2012-03-291-3/+0
| | | | | | | | | BUG=120075 TEST=existing Review URL: https://chromiumcodereview.appspot.com/9863040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129642 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 129627 - Add a sandbox API for broker handle duplicationjschuh@chromium.org2012-03-291-8/+0
| | | | | | | | | | BUG=119250 Review URL: https://chromiumcodereview.appspot.com/9838083 TBR=jschuh@chromium.org Review URL: https://chromiumcodereview.appspot.com/9924010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129629 0039d316-1c4b-4281-b951-d872f2087c98
* Add a sandbox API for broker handle duplicationjschuh@chromium.org2012-03-291-0/+8
| | | | | | | BUG=119250 Review URL: https://chromiumcodereview.appspot.com/9838083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129627 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the obsolete prefs kPopupWhitelistedHosts and ↵markusheintz@chromium.org2012-03-292-10/+0
| | | | | | | | | | | kPerHostContentSettigns. This includes the migration code for migrating the prefs to the pref kContentSettingsPatterPairs. BUG=120848 TEST=PrefProvider*,HostContentSettingsMap* Review URL: https://chromiumcodereview.appspot.com/9837037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129624 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor several callers that collect basic extension info.pam@chromium.org2012-03-294-0/+46
| | | | | | | | | | 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
* Make the constants in the chrome.storage API actual powers of 2, and comma-kalman@chromium.org2012-03-293-18/+29
| | | | | | | | | separate large values when displaying the HTML for human readability. Review URL: http://codereview.chromium.org/9921003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129599 0039d316-1c4b-4281-b951-d872f2087c98
* Static documentation for Font Settings Extension API.falken@chromium.org2012-03-292-1/+127
| | | | | | | | | | BUG=114148 TEST=none Review URL: http://codereview.chromium.org/9784014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129594 0039d316-1c4b-4281-b951-d872f2087c98
* Add kalman and koz to chrome/extensions/common/api/OWNERS.kalman@chromium.org2012-03-291-4/+6
| | | | | | Review URL: https://chromiumcodereview.appspot.com/9925001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129582 0039d316-1c4b-4281-b951-d872f2087c98
* Run chrome/common/extensions/docs/build/build.py to update the out-of-datekalman@chromium.org2012-03-293-1/+834
| | | | | | | | extension docs. Review URL: https://chromiumcodereview.appspot.com/9924003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129578 0039d316-1c4b-4281-b951-d872f2087c98
* Make it so that allow_js_access: false can be used with background pages ↵mihaip@chromium.org2012-03-294-9/+4
| | | | | | | | | | | | | | | created by window.open. We want attempts to create those windows to succeed, but the window.open call should still return null. This is accomplished by opening the background contents in another process, in the same manner as r125180. BUG=120446 R=creis@chromium.org Review URL: http://codereview.chromium.org/9837074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129574 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused "background" manifest key constant.mihaip@chromium.org2012-03-292-2/+0
| | | | | | | | | | | Per r14902, that's how background pages were initially specified in the manifest. R=mpcomplete@chromium.org Review URL: http://codereview.chromium.org/9873042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129551 0039d316-1c4b-4281-b951-d872f2087c98
* Add kalman and koz to */extensions/OWNERS.koz@chromium.org2012-03-291-4/+6
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9902001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129544 0039d316-1c4b-4281-b951-d872f2087c98
* Lazy background page branding: "Transient Background Page". Renamempcomplete@chromium.org2012-03-284-24/+26
| | | | | | | | | | | public-facing API stuff. BUG=no TEST=no Review URL: https://chromiumcodereview.appspot.com/9877018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129520 0039d316-1c4b-4281-b951-d872f2087c98
* Add experimental.alarms API to allow lazy background pages to wake ↵mpcomplete@chromium.org2012-03-288-5/+130
| | | | | | | | | | | themselves up after a timeout. BUG=81758 TEST=no Review URL: https://chromiumcodereview.appspot.com/9791011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129495 0039d316-1c4b-4281-b951-d872f2087c98
* Add base::HostToNetXX() & NetToHostXX(), and use them to replace htonX() & ↵wez@chromium.org2012-03-281-1/+1
| | | | | | | | | | | | | | ntohX() in Chrome. This primarily addresses issues with code using the OS-provided htonX() & ntohX() functions from within the Chrome sandbox. Under Windows these functions are provided by ws2_32.dll, which is no longer available within Chrome's sandbox. The new base::HostToNetXX() and NetToHostXX() functions are safe for use by sandboxed code on Windows, and provide a single place where future fixes for other platforms can be made. BUG=117252 Review URL: http://codereview.chromium.org/9716020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129476 0039d316-1c4b-4281-b951-d872f2087c98
* Removing obsolete chromePrivate.decodeJPEG API.glotov@google.com2012-03-287-39/+0
| | | | | | | | | BUG=113657 TEST=unit Review URL: https://chromiumcodereview.appspot.com/9839067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129394 0039d316-1c4b-4281-b951-d872f2087c98
* Test that individual APIs require platform-app flag and experimental flag.miket@chromium.org2012-03-281-6/+83
| | | | | | | | | | | | This is the follow-up CL described in http://codereview.chromium.org/9867003/. BUG=119758 TEST=see above Review URL: http://codereview.chromium.org/9863046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129347 0039d316-1c4b-4281-b951-d872f2087c98
* Test negative case: load platform-app manifest without command-line flag.miket@chromium.org2012-03-281-1/+4
| | | | | | | | | | | This is the way we should have done the test that led to the annoying bug specified below (119758). We were doing a heavyweight VerifyPermissions browser test that crapped all over the trybots. This test, on the other hand, is a light and airy unit test. We have another CL in the process of landing now that contains code to be cleaned up (every instance of VerifyPermissions). When this CL and that CL land, another CL will follow that does that cleanup. In that CL, I'm also working on functionality that will make it easy to test on an API-by-API basis that the API is available only to platform apps. BUG=119758 TEST=yes, added Review URL: http://codereview.chromium.org/9867003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129343 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a few warnings that -Wnull-conversion of a future clang will complain about.thakis@chromium.org2012-03-281-1/+1
| | | | | | | | | | | BUG=none TEST=none TBR=OWNERS NOTRY=true Review URL: http://codereview.chromium.org/9845017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129337 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY - add command line options - enable-npn and enable-npn-httprtenneti@chromium.org2012-03-282-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following command line options: --enable-npn Enables npn and spdy. In case server supports spdy, browser will use spdy. --enable-npn-http Enables NPN with http. It means npn is enabled but spdy won't be used. Http is still used for all requests. Retire the following command line options (which were the same as above) --use-spdy=npn --use-spdy=npn-http BUG=119849 R=willchan TEST=browser tests with command line options enable-npn and enable-npn-http. In chrome://net-internals when --enable-npn command line option is specified, we should see http/1.1 and spdy/2 as supported protocols under SPDY tab. When --enable-npn-http option is specified, we should see http/1.1 and http1.1 as supported protocols. Review URL: http://codereview.chromium.org/9837066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129335 0039d316-1c4b-4281-b951-d872f2087c98
* Add a temporary alias for the background permission.mihaip@chromium.org2012-03-282-0/+9
| | | | | | | | | | BUG=120447 R=atwilson@chromium.org Review URL: http://codereview.chromium.org/9860048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129327 0039d316-1c4b-4281-b951-d872f2087c98
* Ash: Special header transparency for single open windowsjamescook@chromium.org2012-03-272-0/+16
| | | | | | | | | | | | | | | | | | Added a special transparency setting for when a single large window is open. Made window transparency values based on constants, rather than baked into assets. Added chrome://transparency so designers can fiddle with the values without waiting for an engineer to make a change and the builds to cycle. We'll take this out when we have final values. BUG=120275,120454 TEST=manual R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=129266 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=129272 Review URL: https://chromiumcodereview.appspot.com/9864010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129280 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 129266 - Ash: Special header transparency for single open windowsjamescook@chromium.org2012-03-272-16/+0
| | | | | | | | | | | | | | | | | Added a special transparency setting for when a single large window is open. Made window transparency values based on constants, rather than baked into assets. Added chrome://transparency so designers can fiddle with the values without waiting for an engineer to make a change and the builds to cycle. We'll take this out when we have final values. BUG=120275,120454 TEST=manual R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/9864010 TBR=jamescook@chromium.org Review URL: https://chromiumcodereview.appspot.com/9861040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129272 0039d316-1c4b-4281-b951-d872f2087c98
* Ash: Special header transparency for single open windowsjamescook@chromium.org2012-03-272-0/+16
| | | | | | | | | | | | | | Added a special transparency setting for when a single large window is open. Made window transparency values based on constants, rather than baked into assets. Added chrome://transparency so designers can fiddle with the values without waiting for an engineer to make a change and the builds to cycle. We'll take this out when we have final values. BUG=120275,120454 TEST=manual R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/9864010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129266 0039d316-1c4b-4281-b951-d872f2087c98
* Make the "Stylizr" storage API example extension use the "local" storage area.kalman@chromium.org2012-03-274-5/+16
| | | | | | Review URL: https://chromiumcodereview.appspot.com/9861013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129133 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 129107 - Remove remnants of the identity permission.rsleevi@chromium.org2012-03-271-0/+3
| | | | | | | | | | | | BUG=120075 TEST=existing Review URL: http://codereview.chromium.org/9856007 TBR=jstritar@chromium.org Review URL: https://chromiumcodereview.appspot.com/9860026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129130 0039d316-1c4b-4281-b951-d872f2087c98
* Add initial documentation for the chrome.storage APIkalman@chromium.org2012-03-272-3/+273
| | | | | | | | BUG=120347 Review URL: https://chromiumcodereview.appspot.com/9864023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129126 0039d316-1c4b-4281-b951-d872f2087c98
* Expose more font size prefs to the Font Settings Extension API.falken@google.com2012-03-273-5/+627
| | | | | | | | | | | This adds functions for default fixed font size and minimum font size. BUG=114148 TEST=browser_tests --gtest_filter=ExtensionApiTest.FontSettings Review URL: https://chromiumcodereview.appspot.com/9853013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129125 0039d316-1c4b-4281-b951-d872f2087c98
* Adding read, read-write and create file access permission to ↵tbarzic@chromium.org2012-03-276-30/+169
| | | | | | | | | | | | | | | | | | | | | | | | fileBrowserHandler manifest. added file_access property to file_browser_handlers the property is list of enum {"read", "read-write", "create"} values. The property is optional and it's default value is read-write "create" value must be alone in the list. If "create" is specified, file_filters property is ignored. design doc (part 1 only): https://docs.google.com/a/google.com/document/d/10ZWbisYfxz4jSvvN534p7fPyFFRrmwDtA1RaJN7VDl4/edit (part 2 needs some more work, it's targeted for R20) BUG=chromium-os:26106 TEST=unit/browser : *FileBrowser* Review URL: https://chromiumcodereview.appspot.com/9741002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129112 0039d316-1c4b-4281-b951-d872f2087c98
* Remove remnants of the identity permission.jstritar@chromium.org2012-03-271-3/+0
| | | | | | | | | BUG=120075 TEST=existing Review URL: http://codereview.chromium.org/9856007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129107 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Fix zombie sessions from disconnecting/reconnecting sync.zea@chromium.org2012-03-272-0/+5
| | | | | | | | | | | | | | To avoid creating zombie sessions when users disconnect/reconnect sync, the session model associator now creates and persists its own GUID via the kSyncSessionsGUID preference. We initialize it with the current sync cached GUID, but from then on it persists regardless of sync's state. BUG=120329 TEST=Manually disconnect/reconnect sync and ensure no zombie sessions exist. Review URL: https://chromiumcodereview.appspot.com/9864017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129100 0039d316-1c4b-4281-b951-d872f2087c98
* Add callbacks to history.addUrl and history.deleteUrlcduvall@chromium.org2012-03-272-2/+94
| | | | | | | | | | | | | | | Added optional callbacks to addUrl and deleteUrl, and fixed up some of the api tests to use them. BUG=76170 TEST=*HistoryExtensionApiTest* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128299 Review URL: http://codereview.chromium.org/9811017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129086 0039d316-1c4b-4281-b951-d872f2087c98