summaryrefslogtreecommitdiffstats
path: root/chrome/common
Commit message (Collapse)AuthorAgeFilesLines
* Add support for a "split" incognito behavior for extensions.mpcomplete@chromium.org2010-08-3110-14/+113
| | | | | | | | | | | | | | | | - 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
* FBTF: A giant cleanup to net/erg@google.com2010-08-311-0/+1
| | | | | | | | | | | | This moves all sorts of code from h files to cc files and reduces header dependencies. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3212008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58020 0039d316-1c4b-4281-b951-d872f2087c98
* [Chrome OS] Add signing and verification to ownership APIcmasone@google.com2010-08-311-0/+10
| | | | | | | | | | | Most of the files in here are changed only because I switched to representing digital signatures as std::vector<uint8> instead of std::string, so I had to alter the signatures of a lot of methods. BUG=chromium-os:4488 TEST=unit tests Review URL: http://codereview.chromium.org/3212011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58005 0039d316-1c4b-4281-b951-d872f2087c98
* Implement the Chrome half of setVersion.jorlow@chromium.org2010-08-311-0/+6
| | | | | | | | | TEST=setVersion layout test works in non-single-process-mode BUG=none Review URL: http://codereview.chromium.org/3116043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57988 0039d316-1c4b-4281-b951-d872f2087c98
* Update browser cache of accessibility tree on renderer sub-tree changes.ctguil@chromium.org2010-08-312-12/+22
| | | | | | | | | | | | | WebKit sister patch: http://trac.webkit.org/changeset/66305 BUG=13291 TEST=interactive_ui_tests --gtest_filter=AccessibilityWinBrowserTest.TestDynamicAccessibilityTree TEST=unit_tests --gtest_filter=BrowserAccessibilityTest.TestChildrenChange TEST=unit_tests --gtest_filter=BrowserAccessibilityTest.TestChildrenChangeNoLeaks Review URL: http://codereview.chromium.org/3117036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57983 0039d316-1c4b-4281-b951-d872f2087c98
* Add final part of IPC plumbing for FileSystem API (retry).kinuko@chromium.org2010-08-3110-20/+333
| | | | | | | | | | | | | Original issue: http://codereview.chromium.org/3208007/show (Reverted due to rebase error) BUG=32277 TEST=none; to be added when we have complete implementation. TBR=phajdan-jr, michaeln Review URL: http://codereview.chromium.org/3256006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57955 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r57788 - Expose Extension Bindings to Component Applicationsrafaelw@chromium.org2010-08-314-3/+78
| | | | | | | | | | | | | | | | This patch allows component (built-in) extension apps to have extension api bindings. Note that this patch adds browser-side api permission checking for extension requests. This is step two along the path to exposing an extension management api to the gallery (webstore). Original Review: http://codereview.chromium.org/3163044 BUG=27431 TBR=mpcomplete Review URL: http://codereview.chromium.org/3263007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57941 0039d316-1c4b-4281-b951-d872f2087c98
* Support handling blob URL and resolve blob references in upload data.jianli@chromium.org2010-08-313-0/+11
| | | | | | | | | BUG=none TEST=unittest Review URL: http://codereview.chromium.org/3282003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57938 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 57915 - Add final part of IPC plumbing for FileSystem API.kinuko@chromium.org2010-08-3010-333/+20
| | | | | | | | | | | | BUG=32277 TEST=none; to be added when we have complete implementation. Review URL: http://codereview.chromium.org/3208007 TBR=kinuko@chromium.org,phajdan-jr Review URL: http://codereview.chromium.org/3245010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57923 0039d316-1c4b-4281-b951-d872f2087c98
* Add final part of IPC plumbing for FileSystem API.kinuko@chromium.org2010-08-3010-20/+333
| | | | | | | | | BUG=32277 TEST=none; to be added when we have complete implementation. Review URL: http://codereview.chromium.org/3208007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57915 0039d316-1c4b-4281-b951-d872f2087c98
* Sandboxing built-in flashcpu@chromium.org2010-08-301-9/+9
| | | | | | | | | | | | | | | This is the last change needed to have an experimental sandboxed flash for windows - Adds an export so flash can lower the token - Thightents the policy a bit - Sets a separate flash data directory. BUG=50796 TES=see bug Review URL: http://codereview.chromium.org/3245006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57899 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Move some heavy, repeatedly emitted symbols to implementation files.erg@google.com2010-08-301-0/+1
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3162047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57896 0039d316-1c4b-4281-b951-d872f2087c98
* Move --block-nonsandboxed-plugins command line switch to preferences.bauerb@chromium.org2010-08-303-1/+6
| | | | | | | | | BUG=53812 TEST=none Review URL: http://codereview.chromium.org/3217009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57872 0039d316-1c4b-4281-b951-d872f2087c98
* Add optional notifications for open/close changes in buildbot monitor sample.asargent@chromium.org2010-08-303-13/+57
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3127004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57871 0039d316-1c4b-4281-b951-d872f2087c98
* Add html node info (tag name, attributes, and computed display) and documentdmazzoni@chromium.org2010-08-302-0/+17
| | | | | | | | | | | | | | info (url, title, mimetype, doctype) to WebAccessibility. BUG=none TEST=Modified unit test: RenderMessagesUnittest.WebAccessibility TEST=Added new browser test: RendererAccessibilityBrowserTest.TestCrossPlatformAccessibilityTree Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57188 Review URL: http://codereview.chromium.org/3013035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57866 0039d316-1c4b-4281-b951-d872f2087c98
* Remove full-screen launch option app.launch.fullscreenskerner@chromium.org2010-08-305-34/+1
| | | | | | | | | BUG=42447 TEST=Load an extension with app.launch.fullscreen, saw that it had no effect. Review URL: http://codereview.chromium.org/3275003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57855 0039d316-1c4b-4281-b951-d872f2087c98
* Implement events for extensions management API.asargent@chromium.org2010-08-302-19/+22
| | | | | | | | | | | BUG=51178 TEST=The events described in the experimental.management API should fire for extensions and apps being installed, uninstalled, enabled, and disabled. Review URL: http://codereview.chromium.org/3278003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57831 0039d316-1c4b-4281-b951-d872f2087c98
* Remove DOMUI and Views settings for key repeat rate and delay, change the ↵yusukes@chromium.org2010-08-301-3/+5
| | | | | | | | | | | default values instead. BUG=chromium-os:5933 TEST=manually Review URL: http://codereview.chromium.org/3181035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57827 0039d316-1c4b-4281-b951-d872f2087c98
* Resubmit cl 3228005erikkay@chromium.org2010-08-293-33/+136
| | | | | | | | | | BUG=53323 TEST=ExtensionManifestTest.DisallowExtensionPermissions TBR=aa Review URL: http://codereview.chromium.org/3254004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57822 0039d316-1c4b-4281-b951-d872f2087c98
* remove browse extenterikkay@chromium.org2010-08-294-38/+0
| | | | | | | | | BUG=53593 TEST=none Review URL: http://codereview.chromium.org/3242005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57821 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 57816 - disallow extension permissions in hosted appserikkay@chromium.org2010-08-293-138/+36
| | | | | | | | | | | | BUG=53323 TEST=ExtensionManifestTest.DisallowExtensionPermissions Review URL: http://codereview.chromium.org/3228005 TBR=erikkay@chromium.org Review URL: http://codereview.chromium.org/3235006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57820 0039d316-1c4b-4281-b951-d872f2087c98
* disallow extension permissions in hosted appserikkay@chromium.org2010-08-293-36/+138
| | | | | | | | | BUG=53323 TEST=ExtensionManifestTest.DisallowExtensionPermissions Review URL: http://codereview.chromium.org/3228005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57816 0039d316-1c4b-4281-b951-d872f2087c98
* Add the collapsed 'miniview' to the apps and most visisted sections. Also, ↵aa@chromium.org2010-08-292-4/+11
| | | | | | | | | | fix the bug where the wrench disappears on hover. BUG=53248,52199 Review URL: http://codereview.chromium.org/3236001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57799 0039d316-1c4b-4281-b951-d872f2087c98
* Modify the policy to disable plugins to support TYPE_LIST valuesdanno@chromium.org2010-08-283-8/+10
| | | | | | | | | BUG=51897 TEST=ConfigurationPolicyProviderWinTest.* Review URL: http://codereview.chromium.org/3133012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57794 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 57788 - Expose Extension Bindings to Component Applicationsrafaelw@chromium.org2010-08-284-78/+3
| | | | | | | | | | | | | | | | | This patch allows component (built-in) extension apps to have extension api bindings. Note that this patch adds browser-side api permission checking for extension requests. This is step two along the path to exposing an extension management api to the gallery (webstore). BUG=27431 Review URL: http://codereview.chromium.org/3163044 TBR=rafaelw@chromium.org Review URL: http://codereview.chromium.org/3249004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57789 0039d316-1c4b-4281-b951-d872f2087c98
* Expose Extension Bindings to Component Applicationsrafaelw@chromium.org2010-08-284-3/+78
| | | | | | | | | | | | | | This patch allows component (built-in) extension apps to have extension api bindings. Note that this patch adds browser-side api permission checking for extension requests. This is step two along the path to exposing an extension management api to the gallery (webstore). BUG=27431 Review URL: http://codereview.chromium.org/3163044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57788 0039d316-1c4b-4281-b951-d872f2087c98
* Enable speech input by default on windows.satish@chromium.org2010-08-282-0/+4
| | | | | | | | | | | | Makes --enable-speech-input with available only on non-windows builds and adds --disable-speech-input for windows. BUG=none TEST=browser_tests --gtest_filter="SpeechInputBrowserTest.*" Review URL: http://codereview.chromium.org/3261001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57781 0039d316-1c4b-4281-b951-d872f2087c98
* Add debug switches for NaCl to chrome. These switches will propogate ↵noelallen@google.com2010-08-273-0/+15
| | | | | | | | | | | | | | | | through the broker all the way to the NaCl sel loader. The switches enable debugging of the NEXE, and allow port/IP configuration. Changes to NaCl will be in the NaCl repository. BUG=http://code.google.com/p/nativeclient/issues/detail?id=728 TEST=none NOTE: Try server for linux only failed however run of -b linux at a later time passed. However, presubmit is still showing a linux failure warning. Review URL: http://codereview.chromium.org/3184023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57738 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor version-getting info into a chrome::VersionInfo object.evan@chromium.org2010-08-274-60/+116
| | | | | | | | | | | | | | | I was trying to replace wstring usage in base::FileVersionInfo, but that class is rather Windows-specific with strange fields like "private_build()" where the value and encoding aren't clear. 95% of the users of FileVersionInfo actually just care about the current Chrome version, so we can provide a much simpler interface for them. We still use FileVersionInfo for retrieving information from e.g. plugin DLLs, but in those cases the usage is clearer. Review URL: http://codereview.chromium.org/3135028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57725 0039d316-1c4b-4281-b951-d872f2087c98
* Disable BackgroundModeManager by default for M7, and add an ↵atwilson@chromium.org2010-08-272-5/+5
| | | | | | | | | | | | | | | --enable-background-mode command line flag to enable it. Also remove related preferences items if the --enable-background-mode flag is not passed. BUG=53522 TEST=BackgroundModeManager unit tests pass, run without flag and look at preferences dialog to make sure preferences are not there, launch chrome with --keep-alive-for-test flag, see that no status icon appears Review URL: http://codereview.chromium.org/3219001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57713 0039d316-1c4b-4281-b951-d872f2087c98
* Renamed the native_client permission to nativeClient, for consistency with ↵cbiffle@google.com2010-08-271-1/+1
| | | | | | | | | | the other permissions. BUG=52753 TEST= nacl_enabled permissions test Review URL: http://codereview.chromium.org/3181043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57708 0039d316-1c4b-4281-b951-d872f2087c98
* Support sending BlobData to browser process. Also support sending UploadDatajianli@chromium.org2010-08-276-3/+222
| | | | | | | | | | | with the blob info to browser process. BUG=none TEST=none Review URL: http://codereview.chromium.org/3108042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57707 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land. Fixed previous errors.dimich@chromium.org2010-08-272-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Implement OSX version for "Start on Login" for background-enabled extensions. When user installs first background-enabled extension we set Chrome to be a hidden "Login Item", and when user uninstalls the last one, we remove Chrome from the "Login Items List". Login Items are the apps that are listed in Systempreferences->Accounts->Login Items, or which have a "Open on Login" check for their Dock icon. Since we manipulate the user-faced UI item here, we try to do it in a way that will likely not interfere with user settings. Most typically, users do not use 'hidden' property, so if we ever encounter setting w/o this property, we won't override. Also there is a hidden preference used to remember the fact that Chrome changed the settings earlier - to avoid override on uninstall of the last persistent app in opposite case. Using the same bit that user can manipulate separately and perhaps even knows about is beneficial since it provides for unified place to "start Chrome on Login" and reduces confusion. Implementation for Login Items List access uses LSSharedFileList API that is available starting 10.5, which I think is our minimal supported version of OSX. BUG=43382 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57569 Reverted Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57614 Reverted Review URL: http://codereview.chromium.org/3163029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57699 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for delegated kerberos tickets to Negotiate authentication.cbentzel@chromium.org2010-08-272-2/+9
| | | | | | | | | | | This is controlled by the --auth-negotiate-delegate-whitelist command line. By default no servers are delegated to. BUG=50076 TEST=net_unittests, go to an IIS server specified in --auth-negotiate-delegate-whitelist and see if this works correctly. Review URL: http://codereview.chromium.org/3155046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57695 0039d316-1c4b-4281-b951-d872f2087c98
* Change, unify, and specify ordering of cookies from CookieMonster.rdsmith@chromium.org2010-08-2759-271/+214
| | | | | | | | | | | | | | Affected interfaces: * GetCookiesWithOptions (used by HTTP requests) * GetAllCookiesForURL (used by extensions and Cookies UI) * GetAllCookies (used by Cookies UI). BUG=8850 (indirectly) TEST=Standard cookie monster tests, unit_tests::CookiesTreeModelTest.OriginOrdering, browser_tests::ExtensionApiTest.Cookies Review URL: http://codereview.chromium.org/3170034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57694 0039d316-1c4b-4281-b951-d872f2087c98
* Enable device orientation by default.hans@chromium.org2010-08-272-4/+4
| | | | | | | | | | | | Enable device orientation by default. Replace the --enable-device-orientation command-line flag with a --disable-device-orientation flag. BUG=44654 TEST=browser_tests --gtest_filter="DeviceOrientationBrowserTest.*" Review URL: http://codereview.chromium.org/3136038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57684 0039d316-1c4b-4281-b951-d872f2087c98
* When the browser doesn't have connectivity to a hosted app, display a ↵erikkay@chromium.org2010-08-276-45/+81
| | | | | | | | | | | prettier error page by default. TEST=none BUG=41281 Review URL: http://codereview.chromium.org/3174024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57680 0039d316-1c4b-4281-b951-d872f2087c98
* Implement about:labsthakis@chromium.org2010-08-274-12/+24
| | | | | | | | | | | | | Tabpose is currently the only lab on mac, tabs-on-left the only lab on windows. Nothing for linux yet. BUG=53399 TEST=Go to about:labs. Should have one feature on windows and osx each, none on linux yet. about:labs should not be visible on the stable channel. Labs that were enabled on the dev channel should not be enabled on the stable channel. about:labs in chromeos should still work (they use a different implementation) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57635 Review URL: http://codereview.chromium.org/3152055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57670 0039d316-1c4b-4281-b951-d872f2087c98
* Displays a speech input UI bubble during speech recognition.satish@chromium.org2010-08-271-2/+3
| | | | | | | | | | | | | | | | | | | The webkit code passes in display rect of the input element requesting speech input and we create a UI bubble pointing at this element when starting speech input. The user can click outside the bubble to close it, which aborts recognition if we were still recording audio. The user can also click the cancel link in the bubble which aborts recognition irrespective of what state it is in now. Added a SpeechInputBubbleController class to take care of marshalling the requests between the speech input code in IO thread and the UI bubble in the UI thread. Also added a unit test for this class. BUG=none TEST=unit_tests --gtest_filter=SpeechInputBubbleControllerTest.* Review URL: http://codereview.chromium.org/3156048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57666 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 57635: Implement about:labsdpolukhin@chromium.org2010-08-274-24/+12
| | | | | | | | | | | | | | | | Original CL: http://codereview.chromium.org/3152055 Implement about:labs Tabpose is currently the only lab on mac, tabs-on-left the only lab on windows. Nothing for linux yet. BUG=53399 TEST=Go to about:labs. Should have one feature on windows and osx each, none on linux yet. about:labs should not be visible on the stable channel. Labs that were enabled on the dev channel should not be enabled on the stable channel. about:labs in chromeos should still work (they use a different implementation) TBR=thakis@chromium.org Review URL: http://codereview.chromium.org/3256001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57664 0039d316-1c4b-4281-b951-d872f2087c98
* Reland interval change.mbelshe@chromium.org2010-08-271-2/+8
| | | | | | | | | | | | | Move the chromium.Interval to chrome.Interval as part of the benchmarking extension. This means that users will need to use --enable-benchmarking to access it. It really shouldn't be part of the exposed API. BUG=none TEST=none Review URL: http://codereview.chromium.org/3240001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57638 0039d316-1c4b-4281-b951-d872f2087c98
* Implement about:labsthakis@chromium.org2010-08-274-12/+24
| | | | | | | | | | | Tabpose is currently the only lab on mac, tabs-on-left the only lab on windows. Nothing for linux yet. BUG=53399 TEST=Go to about:labs. Should have one feature on windows and osx each, none on linux yet. about:labs should not be visible on the stable channel. Labs that were enabled on the dev channel should not be enabled on the stable channel. about:labs in chromeos should still work (they use a different implementation) Review URL: http://codereview.chromium.org/3152055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57635 0039d316-1c4b-4281-b951-d872f2087c98
* Update the benchmark to:mbelshe@chromium.org2010-08-273-27/+34
| | | | | | | | | | | | | | | - drop the ability to not open in new tabs. It's basically broken anyway. - cycle between JS time and browser time as we shutdown a page and open a new one. This allows us to consistently get the connections closed in a way which was more racey before. - roll version to 1.2. BUG=none TEST=none Review URL: http://codereview.chromium.org/3146042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57627 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 57614 - Re-land. Fixed previous build error.dimich@chromium.org2010-08-272-6/+0
| | | | | | | | | | | | | | | It looks like it broke browser_tests. Will revert and investigate. Implement OSX version for "Start on Login" for background-enabled extensions. Review URL: http://codereview.chromium.org/3163029 TBR=dimich@chromium.org Review URL: http://codereview.chromium.org/3226002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57625 0039d316-1c4b-4281-b951-d872f2087c98
* Move the SingletonSocket to a temporary directorydavidben@chromium.org2010-08-272-2/+2
| | | | | | | | | | | | | | | | This is to workaround problems on certain network filesystems (notably AFS) which do not support Unix domain sockets. We move the sockets into a temporary folder and symlink. To avoid the possibility of a dangling link to a missing (and later intercepted) remote directory, we create and check cookie files and rely on the stickiness of /tmp/ to avoid a race condition in the check. R=mattm BUG=44606 TEST=ProcessSingletonLinuxTest.* Review URL: http://codereview.chromium.org/2838034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57623 0039d316-1c4b-4281-b951-d872f2087c98
* Add --disable-translate to help Selenium/WebDriver dudes make Chromejrg@chromium.org2010-08-272-0/+6
| | | | | | | | | | | | | | more predictable for automated testing. BUG=none TEST=Launch Chrome. Go to http://www.diplomatie.gouv.fr/fr/ See translate info bar? Good. Now launch Chrome with --disable-translate and go to that page again. Make sure translate info bar never shows up. Review URL: http://codereview.chromium.org/3117044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57620 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land. Fixed previous build error.dimich@chromium.org2010-08-272-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Implement OSX version for "Start on Login" for background-enabled extensions. When user installs first background-enabled extension we set Chrome to be a hidden "Login Item", and when user uninstalls the last one, we remove Chrome from the "Login Items List". Login Items are the apps that are listed in Systempreferences->Accounts->Login Items, or which have a "Open on Login" check for their Dock icon. Since we manipulate the user-faced UI item here, we try to do it in a way that will likely not interfere with user settings. Most typically, users do not use 'hidden' property, so if we ever encounter setting w/o this property, we won't override. Also there is a hidden preference used to remember the fact that Chrome changed the settings earlier - to avoid override on uninstall of the last persistent app in opposite case. Using the same bit that user can manipulate separately and perhaps even knows about is beneficial since it provides for unified place to "start Chrome on Login" and reduces confusion. Implementation for Login Items List access uses LSSharedFileList API that is available starting 10.5, which I think is our minimal supported version of OSX. BUG=43382 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57569 Reverted, trying to re-land. Review URL: http://codereview.chromium.org/3163029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57614 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 57569 - Implement OSX version for "Start on Login" for ↵dimich@chromium.org2010-08-262-6/+0
| | | | | | | | | | | background-enabled extensions. Review URL: http://codereview.chromium.org/3163029 TBR=dimich@chromium.org Review URL: http://codereview.chromium.org/3130052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57573 0039d316-1c4b-4281-b951-d872f2087c98
* Implement OSX version for "Start on Login" for background-enabled extensions.dimich@chromium.org2010-08-262-0/+6
| | | | | | | | | | | | | | | | | | | | When user installs first bacground-enabled extension we set Chrome to be a "Login Item", and when user uninstalls the last one, we remove Chrome from the "Login Items List". Login Items are the apps that are listed in Systempreferences->Accounts->Login Items, or which have a "Open on Login" check for their Dock icon. Since we manipulate the user-faced UI item here, we try to do it minimally (only on first installed and last uninstalled background app) with understanding that when we have UI for install/uninstall we'll convert this into more visible, cancellable suggestion on that UI. Using the same bit that user can manipulate separately and perhaps even knows about is beneficial since it provides for unified place to "start Chrome on Login" and reduces confusion. The patch also removes SetKeepAlive/EndKeepAlive calls for OSX since on OSX they are already used properly to keep Chrome alive when all windows are closed (in other words, on Mac there is only one behavior that also fits what is needed for background apps) Implementation for Login Items List access uses LSSharedFileList API that is availabel starting 10.5, which I think is our minimal supported version of OSX. Also added a check in BackgroundModeManager::RemoveStatusTrayIcon() which could crash on OSX because there is no icon_tray_ yet. Review URL: http://codereview.chromium.org/3163029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57569 0039d316-1c4b-4281-b951-d872f2087c98
* First cut at experimental API for managing installed/enabled extensions.asargent@chromium.org2010-08-267-16/+2244
| | | | | | | | | | | The documented methods should all be working, but events are not hooked up yet. BUG=51178 TEST=none Review URL: http://codereview.chromium.org/3200012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57544 0039d316-1c4b-4281-b951-d872f2087c98