summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_prefs.h
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of PrefService::GetMutableDictionary/GetMutableListbattre@chromium.org2011-04-111-10/+11
| | | | | | | | | BUG=77914 TEST=none, trybots remain green Review URL: http://codereview.chromium.org/6706017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81075 0039d316-1c4b-4281-b951-d872f2087c98
* Rename Extension::KILLBIT to EXTERNAL_EXTENSION_UNINSTALLED.aa@chromium.org2011-04-051-3/+3
| | | | | | | | | It would be good to also rename "external extension" to something else, but this is a quick improvement. TBR=mpcomplete@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80493 0039d316-1c4b-4281-b951-d872f2087c98
* Make <all_urls> and file:///* in permissions trigger "Allow file access"mihaip@chromium.org2011-04-011-0/+1
| | | | | | | | | | | | | | | | | | | Move ExtensionWantsFileAccess static functions to Extension::wants_file_access which is set as part of the Extension initialization process. When file:/// access is granted/revoked, instead of storing that in a bit on the UserScript (which didn't help with extension host permissions), we use that to filter down the list of valid schemes for permissions/content script match matterns. That way we don't have to manually exclude file:///* patterns at various call sites (e.g. in UserScriptSlave). BUG=76705 TEST=unit_tests R=aa@chromium.org Review URL: http://codereview.chromium.org/6772022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80213 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Move ExtensionService code that manages pending extensions into its own class.skerner@chromium.org2011-03-251-1/+1
| | | | | | | | | | | | | | | This change should have no impact on chrome's behavior. Once all code paths that install an extension inform PendingExtensionManger that they are starting an install, we can correctly merge requests to install the same extension from multiple sources. This will remove two hacky checks to avoid install races we have seen on Chrome Os. It will also ensure that more hacks are not needed. BUG=61000 TEST=ExtensionUpdaterTest.*:ExtensionServiceTest.*' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=79407 Review URL: http://codereview.chromium.org/6670055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79414 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 79407 - Move ExtensionService code that manages pending extensions ↵skerner@chromium.org2011-03-251-1/+1
| | | | | | | | | | | | | | | | | | into its own class. This change should have no impact on chrome's behavior. Once all code paths that install an extension inform PendingExtensionManger that they are starting an install, we can correctly merge requests to install the same extension from multiple sources. This will remove two hacky checks to avoid install races we have seen on Chrome Os. It will also ensure that more hacks are not needed. BUG=61000 TEST=ExtensionUpdaterTest.*:ExtensionServiceTest.*' Review URL: http://codereview.chromium.org/6670055 TBR=skerner@chromium.org Review URL: http://codereview.chromium.org/6730058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79410 0039d316-1c4b-4281-b951-d872f2087c98
* Move ExtensionService code that manages pending extensions into its own class.skerner@chromium.org2011-03-251-1/+1
| | | | | | | | | | | | | This change should have no impact on chrome's behavior. Once all code paths that install an extension inform PendingExtensionManger that they are starting an install, we can correctly merge requests to install the same extension from multiple sources. This will remove two hacky checks to avoid install races we have seen on Chrome Os. It will also ensure that more hacks are not needed. BUG=61000 TEST=ExtensionUpdaterTest.*:ExtensionServiceTest.*' Review URL: http://codereview.chromium.org/6670055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79407 0039d316-1c4b-4281-b951-d872f2087c98
* Add ability to find out whether an extension pref value is coming from ↵bauerb@chromium.org2011-03-091-0/+4
| | | | | | | | | | | | | | | incognito preferences. If the incognito flag in the request details is set, we now return an incognito parameter from experimental.preference.get that specifies whether the value is coming from the incognito preferences or the regular ones. Also, return an error if an extension that isn't enabled in incognito mode is trying to access incognito preferences. BUG=73994 TEST=ExtensionApiTest.* Review URL: http://codereview.chromium.org/6628081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77465 0039d316-1c4b-4281-b951-d872f2087c98
* Send active ping days along with the rollcall ping days parameter.asargent@chromium.org2011-03-081-5/+13
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6633003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77317 0039d316-1c4b-4281-b951-d872f2087c98
* Fix missing change notifications of UserPrefStorebattre@chromium.org2011-03-071-2/+2
| | | | | | | | | BUG=74466 TEST=follow steps in bug description Review URL: http://codereview.chromium.org/6604009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77120 0039d316-1c4b-4281-b951-d872f2087c98
* Reorder some functions in ExtensionPrefs to keep related methods together.asargent@chromium.org2011-03-041-5/+5
| | | | | | | | | | | | | | Looks like the GetGrantedPermissions/AddGrantedPermissions methods were accidentally put in the middle of some of the *PingDay group of methods. BUG=none TEST=none TBR=jstritar Review URL: http://codereview.chromium.org/6627023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76973 0039d316-1c4b-4281-b951-d872f2087c98
* Add an optional 'page_index' preference to apps and 'setPageIndex' message ↵rbyers@chromium.org2011-03-041-0/+8
| | | | | | | | | | | | | | | which can be used to set it. This doesn't actually modify the behavior of the NTP whatsoever. It's a small extension which will be used by a future alternate NTP front-end that shares the same WebUI back-end code. Any NTP front-end that doesn't support pagination of apps will simply ignore this. This also includes a simple unit test to verify the functioning of this preference. BUG=73437 TEST=new test in unit_tests ('ExtensionPrefsPageIndex') Review URL: http://codereview.chromium.org/6546017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76916 0039d316-1c4b-4281-b951-d872f2087c98
* Added LevelOfControl to Preferences API's get() resultbattre@chromium.org2011-02-241-0/+12
| | | | | | | | | BUG=73427 TEST=./unit_tests --gtest_filter="PrefValueStoreTest.*" && ./unit_tests --gtest_filter="ExtensionPrefValueMapTest.*" && ./browser_tests --gtest_filter=ExtensionApiTest.IncognitoContentSettings && ./browser_tests --gtest_filter=ExtensionApiTest.ContentSettings Review URL: http://codereview.chromium.org/6542021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75947 0039d316-1c4b-4281-b951-d872f2087c98
* Implement experimental.contentSettings.misc.blockThirdPartyCookies.bauerb@chromium.org2011-02-241-0/+1
| | | | | | | | | | | This adds a Preference class to the extension APIs that can be used for access to other preferences in the future. BUG=71067 TEST=ExtensionApiTest.ContentSettings:ExtensionApiTest.IncognitoContentSettings Review URL: http://codereview.chromium.org/6480033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75866 0039d316-1c4b-4281-b951-d872f2087c98
* Track which apps the user has re-ordered on the NTP.jstritar@chromium.org2011-02-191-0/+8
| | | | | | | | | BUG=73445 TEST=ExtensionPrefsAppDraggedByUser Review URL: http://codereview.chromium.org/6543017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75497 0039d316-1c4b-4281-b951-d872f2087c98
* Prevent console spam about missing 'state' prefbattre@chromium.org2011-02-141-1/+1
| | | | | | | | | BUG=71612 TEST=Start Chrome and see whether it prints a line "Bad or missing pref 'state' for extension ...". Review URL: http://codereview.chromium.org/6447004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74815 0039d316-1c4b-4281-b951-d872f2087c98
* chrome.management.launchApp() should choose the window type for the app ↵skerner@chromium.org2011-02-091-1/+6
| | | | | | | | | | | based on user prefs. BUG=70191 TEST=ExtensionManagementApiTest.Launch*App Review URL: http://codereview.chromium.org/6368139 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74297 0039d316-1c4b-4281-b951-d872f2087c98
* Separate proxy settings for Incognito mode.battre@chromium.org2011-02-041-0/+4
| | | | | | | | | | | | | This CL enables setting different proxy settings for regular windows and incognito windows. Also it allows removing a preference set by an extension (in order to fall back to the default/recommended value again). This CL depends on http://codereview.chromium.org/5915004/ which is not landed, yet. BUG=509 TEST=unit tests, no manual test, yet (will follow once appropriate extensions are available) Review URL: http://codereview.chromium.org/6261004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73798 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce incognito preference settings.battre@chromium.org2011-01-251-27/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL introduces preference settings for incognito windows. The semantics are the following: - An extension can set regular preferences as before. These affect regular and incognito windows. - An extension can set regular preferences *and* incognito preferences. In this case, the incognito preferences affect only incognito windows. - If extension A sets reg+incognito, extension B sets reg but no incognito, extension B has higher precedence than A --> B's preferences hold for all regular and incognito windows. - Incognito preferences are never persisted to disk. In order to realize this, the ExtensionPrefs class allows setting regular and incognito extension controlled preferences. It allows creating an incognito version of the PrefService with an independent PrefValueStore. This (incognito) PrefValueStore and the original PrefValueStore share several of their PrefStores (i.e. DefaultPrefStore, CommandLinePrefStore, Configuration PrefStores) but differ in two pref stores: - We maintain two separate ExtensionPrefStores containing the effective preferences for regular and incognito windows. - We maintain two separate user pref stores. The regular JsonPrefStore is expanded by an OverlayPersistentPrefStore that maintains all write-operations in an in-memory overlay. Therefore, incognito changes are not visible in the file-backed JsonPrefStore. The two ExtensionPrefStores retrieve their effective values from a shared ExtensionPrefValueMap. The OffTheRecordProfileImpl provides a request_context_ that uses the new PrefService already. BUG=66027,69057 TEST=unit tests, will be fully testable once the Proxy Settings API allows incognito settings. Review URL: http://codereview.chromium.org/5915004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72489 0039d316-1c4b-4281-b951-d872f2087c98
* [NTP] Allow reordering of apps via drag and drop.jstritar@chromium.org2011-01-241-0/+3
| | | | | | | | | BUG=53977 TEST=None. Review URL: http://codereview.chromium.org/6297013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72311 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce warning level if extension has no installation timebattre@chromium.org2011-01-101-0/+2
| | | | | | | | | BUG=67107 TEST=n/a Review URL: http://codereview.chromium.org/6180003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70902 0039d316-1c4b-4281-b951-d872f2087c98
* Sanitize PrefStore interface.mnissler@chromium.org2010-12-091-1/+8
| | | | | | | | | | | | | | | | | This reworks the PrefStore interface, specifically: - Split up the interface into PrefStore, which only provides reading functionality, and the derived PersistentPrefStore for the actual user pref store - Remove the hurt-me-plenty prefs() function from PrefStore, instead provide Get/Set/Remove operations - Remove special handling of default and user pref store from PrefValueStore and put it into PrefService - Pref change notification handling now almost exclusively handled through PrefValueStore - Adjust all consumers of these interfaces (but keep ConfigurationPolicyPrefStore untouched, that's up next on the list) BUG=64232 TEST=existing unit tests Review URL: http://codereview.chromium.org/5646003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68736 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for Bug 50726 "Save extension list and "winning" prefs from extensions"bauerb@chromium.org2010-12-061-4/+71
| | | | | | | | | | | | | | | | | | | This is a redesign for http://codereview.chromium.org/4852002/ following discussions. The goal of this patch is to ensure that Chrome maintains the order in which extensions apply their preferences between restarts. This may be an issue if two extensions overwrite each others preferences. Furthermore, it ensures that preferences are persisted to disk between browser restarts. Therefore, previous settings are immediately available when the browser is restarted. A description of the design has been published https://docs.google.com/a/google.com/document/d/1E_HX_cUpET1gH2gDunGIU1EOywMM6FEOuVU6TlpnSwo/edit?hl=en for review and comments. - Sorry, accessible Google internally only. This CL requires http://codereview.chromium.org/5204006/ Contributed by battre@google.com BUG=50726 TEST=none Review URL: http://codereview.chromium.org/5213002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68355 0039d316-1c4b-4281-b951-d872f2087c98
* Decouple killbit testing from external extension providersgfeher@chromium.org2010-12-061-2/+3
| | | | | | | | | | | Don't test the killbit in each ExternalExtensionProvider, but test it in ExternalExtensionsService. BUG=65107 TEST=ExtensionManagementTest.ExternalUpdate Review URL: http://codereview.chromium.org/5535002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68348 0039d316-1c4b-4281-b951-d872f2087c98
* Add "create Application Shortcut" to the app menu on NTP.skerner@google.com2010-11-301-1/+13
| | | | | | | | | BUG=52451 TEST=Manually create app shortcuts for urls and apps. Review URL: http://codereview.chromium.org/5273004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67664 0039d316-1c4b-4281-b951-d872f2087c98
* Track permissions granted to extensions in prefsjstritar@chromium.org2010-11-301-1/+40
| | | | | | | | | | | | | | | | | | Adds a section to the extension preferences to store the recognized permissions that the user has granted the extension. Ignores unknown permissions when installing extensions. Disables extension and prompts user to re-enable when unknown permissions become recognized (e.g., through browser upgrade). Allows extensions to remove a permission in one version, then add them back in the next without prompting the user. BUG=42742 TEST=ExtensionsServiceTest, ExtensionPrefsGrantedPermissions, ExtensionTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67500 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67544 Review URL: http://codereview.chromium.org/4687005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67616 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67544 - Track permissions granted to extensions in prefsarv@chromium.org2010-11-291-40/+1
| | | | | | | | | | | | | | | | | | | | Adds a section to the extension preferences to store the recognized permissions that the user has granted the extension. Ignores unknown permissions when installing extensions. Disables extension and prompts user to re-enable when unknown permissions become recognized (e.g., through browser upgrade). Allows extensions to remove a permission in one version, then add them back in the next without prompting the user. BUG=42742 TEST=ExtensionsServiceTest, ExtensionPrefsGrantedPermissions, ExtensionTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67500 Review URL: http://codereview.chromium.org/4687005 TBR=jstritar@chromium.org Review URL: http://codereview.chromium.org/5259005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67557 0039d316-1c4b-4281-b951-d872f2087c98
* Track permissions granted to extensions in prefsjstritar@chromium.org2010-11-291-1/+40
| | | | | | | | | | | | | | | | Adds a section to the extension preferences to store the recognized permissions that the user has granted the extension. Ignores unknown permissions when installing extensions. Disables extension and prompts user to re-enable when unknown permissions become recognized (e.g., through browser upgrade). Allows extensions to remove a permission in one version, then add them back in the next without prompting the user. BUG=42742 TEST=ExtensionsServiceTest, ExtensionPrefsGrantedPermissions, ExtensionTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67500 Review URL: http://codereview.chromium.org/4687005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67544 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67500 - Adds a section to the extension preferences to store the ↵jstritar@chromium.org2010-11-291-40/+1
| | | | | | | | | | | | | | | | | | recognized permissions that the user has granted the extension. Ignores unknown permissions when installing extensions. Disables extension and prompts user to re-enable when unknown permissions become recognized (e.g., through browser upgrade). Allows extensions to remove a permission in one version, then add them back in the next without prompting the user. BUG=42742 TEST=ExtensionsServiceTest, ExtensionPrefsGrantedPermissions, ExtensionTest Review URL: http://codereview.chromium.org/4687005 TBR=jstritar@chromium.org Review URL: http://codereview.chromium.org/5286009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67501 0039d316-1c4b-4281-b951-d872f2087c98
* Adds a section to the extension preferences to store the recognized ↵jstritar@chromium.org2010-11-281-1/+40
| | | | | | | | | | | | | | | permissions that the user has granted the extension. Ignores unknown permissions when installing extensions. Disables extension and prompts user to re-enable when unknown permissions become recognized (e.g., through browser upgrade). Allows extensions to remove a permission in one version, then add them back in the next without prompting the user. BUG=42742 TEST=ExtensionsServiceTest, ExtensionPrefsGrantedPermissions, ExtensionTest Review URL: http://codereview.chromium.org/4687005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67500 0039d316-1c4b-4281-b951-d872f2087c98
* Add "open as window" menu item to NTP app menu.skerner@chromium.org2010-11-221-1/+2
| | | | | | | | | | | BUG=59697 TEST=BrowserTest.OpenAppWindowLikeNtp,SessionRestoreUITest.RestoreAfterClosing* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66646 Review URL: http://codereview.chromium.org/5019005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66954 0039d316-1c4b-4281-b951-d872f2087c98
* Allow users to hide Browser Actions by right-clicking the icon and selecting ↵finnur@chromium.org2010-11-191-0/+4
| | | | | | | | | | | | | Hide. To un-hide, you need to disable and enable the extension. BUG=57824 TEST=BrowserActionsContainerTest.ForceHide, ExtensionPrefsHidingBrowserActions.ForceHide Review URL: http://codereview.chromium.org/5164002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66760 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 66646 - Add "open as window" menu item to NTP app menu.skerner@chromium.org2010-11-181-2/+1
| | | | | | | | | | | | BUG=59697 TEST=BrowserTest.OpenAppWindowLikeNtp,SessionRestoreUITest.RestoreAfterClosing* Review URL: http://codereview.chromium.org/5019005 TBR=skerner@chromium.org Review URL: http://codereview.chromium.org/5168004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66665 0039d316-1c4b-4281-b951-d872f2087c98
* Add "open as window" menu item to NTP app menu.skerner@chromium.org2010-11-181-1/+2
| | | | | | | | | BUG=59697 TEST=BrowserTest.OpenAppWindowLikeNtp,SessionRestoreUITest.RestoreAfterClosing* Review URL: http://codereview.chromium.org/5019005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66646 0039d316-1c4b-4281-b951-d872f2087c98
* Allow an extension to dynamically set extra data in its update URL, in orderrogerta@chromium.org2010-11-121-0/+7
| | | | | | | | | | | | to communicate dynamic information to its update server if needed. BUG=none TEST=Make sure that existing extensions that do no set any extra data are not adversely affected. Review URL: http://codereview.chromium.org/4725002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65946 0039d316-1c4b-4281-b951-d872f2087c98
* Part 3 of immutable Extension refactor.mpcomplete@chromium.org2010-10-291-4/+4
| | | | | | | | | | | | | Make ExtensionsService hold const Extension pointers only. This ensures that extensions can't be modified after they're created, and lets us share them between threads. BUG=56558 TEST=no functional change Review URL: http://codereview.chromium.org/4138006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64517 0039d316-1c4b-4281-b951-d872f2087c98
* Fix 57090: NTP apps sorted in random-looking order.finnur@chromium.org2010-10-101-0/+13
| | | | | | | | | | | Add the concept of app_launch_index, stored with the extension that determines an install order which is used to order the apps on the new tab page. BUG=57090 TEST=None Review URL: http://codereview.chromium.org/3611014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62112 0039d316-1c4b-4281-b951-d872f2087c98
* add app histogramserikkay@chromium.org2010-10-081-0/+2
| | | | | | | | | BUG=58490 TEST=about:histograms/Extensions Review URL: http://codereview.chromium.org/3640003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62023 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Continue fixing nits found by my automated source scanner.erg@google.com2010-10-051-0/+1
| | | | | | | | | | | (~1.3 megs off Debug linux .a files) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3556013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61587 0039d316-1c4b-4281-b951-d872f2087c98
* o Add user customizable launch type for apps by adding options in each apps ↵andybons@chromium.org2010-09-301-0/+34
| | | | | | | | | | | | | | | | | | | | | context menu. o Updated some comments that were using the outdated NOTIFY_PREF_CHANGED notification. o Make LAUNCH_PINNED the default type returned by ExtensionPrefs if it does not already exist. o Some minor refactoring within the code to reduce duplication. BUG=54731 TEST=NONE patch from issue 3419010 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60997 Reverted: http://crrev.com/61000 Review URL: http://codereview.chromium.org/3453029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61021 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 60997 - o Add user customizable launch type for apps by adding ↵andybons@chromium.org2010-09-291-34/+0
| | | | | | | | | | | | | | | | | | | | options in each apps context menu. o Updated some comments that were using the outdated NOTIFY_PREF_CHANGED notification. o Make LAUNCH_PINNED the default type returned by ExtensionPrefs if it does not already exist. o Some minor refactoring within the code to reduce duplication. BUG=54731 TEST=NONE patch from issue 3419010 Review URL: http://codereview.chromium.org/3453029 TBR=andybons@chromium.org Review URL: http://codereview.chromium.org/3517004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61000 0039d316-1c4b-4281-b951-d872f2087c98
* o Add user customizable launch type for apps by adding options in each apps ↵andybons@chromium.org2010-09-291-0/+34
| | | | | | | | | | | | | | | | | context menu. o Updated some comments that were using the outdated NOTIFY_PREF_CHANGED notification. o Make LAUNCH_PINNED the default type returned by ExtensionPrefs if it does not already exist. o Some minor refactoring within the code to reduce duplication. BUG=54731 TEST=NONE patch from issue 3419010 Review URL: http://codereview.chromium.org/3453029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60997 0039d316-1c4b-4281-b951-d872f2087c98
* Private API for web store to get sync login and set store login information.asargent@chromium.org2010-09-011-0/+8
| | | | | | | | | | BUG=53489 TEST=Not sure yet the best way to test this - it will depend on how the store implements their part of the API. Review URL: http://codereview.chromium.org/3219006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58126 0039d316-1c4b-4281-b951-d872f2087c98
* Move prefs-related files under chrome/browser/ into a prefs/ subdir.evan@chromium.org2010-08-261-1/+1
| | | | | | | | | | | | Rename includes, resort header include order in places where the rename changed the order. BUG=50548 TEST=compiles Review URL: http://codereview.chromium.org/3203008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57434 0039d316-1c4b-4281-b951-d872f2087c98
* Remove wchar_t* methods from prefs.viettrungluu@chromium.org2010-08-121-3/+3
| | | | | | | | | BUG=23581 TEST=builds and passes tests Review URL: http://codereview.chromium.org/3136004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55848 0039d316-1c4b-4281-b951-d872f2087c98
* Implement admin control (by policy) over which extensions the user can ↵finnur@chromium.org2010-08-111-1/+4
| | | | | | | | | | | | | | | | | | install and run. Currently we intercept in two locations: 1) When the user tries to install an extension (includes error message). 2) Every time the browser starts up and the currently installed extensions are loaded (silently skips the extension). I implemented a whitelist and a blacklist approach, calling it a allow/deny list to not clash with the global blacklist we have for extensions. A blacklist of '*' means all extensions are blacklisted. If an extension is on the blacklist it cannot be installed/loaded, unless it also appears on the whitelist. I also fleshed out the LIST_TYPE support for policy values, so that we don't have to use comma separated REG_SZ values for lists and can instead use ADM support for listboxes. BUG=47085 TEST=ExtensionsServiceTest.BlacklistedByPolicyWillNotInstall, ConfigurationPolicyProviderWinTest.TestExtensionInstall* Review URL: http://codereview.chromium.org/3014053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55727 0039d316-1c4b-4281-b951-d872f2087c98
* `#pragma once` for app, base, chrome, gfx, ipc, net, skia, viewsthakis@chromium.org2010-07-261-0/+1
| | | | | | | | | BUG=50273 TEST=everything still builds, build is 10% faster on windows, same speed on mac/linux TBR: erg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53716 0039d316-1c4b-4281-b951-d872f2087c98
* Attemp 2 at:sky@chromium.org2010-07-211-6/+0
| | | | | | | | | | | | | | | | Makes the toolbar visible for apps again. Here's the set of patches I reverted: 49016, 47119, 47177, 46930, 46775, and the UI changes for 45566) If you see anything missing, please let me know. Also, there are some grd strings no longer necessary. I'll nuke those separately. BUG=49013 TEST=none TBR=finnur Review URL: http://codereview.chromium.org/3056003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53204 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 53062 - Makes the toolbar visible for apps again. Here's the set of ↵pinkerton@chromium.org2010-07-201-0/+6
| | | | | | | | | | | | | | | | | | patches I reverted: 49016, 47119, 47177, 46930, 46775, and the UI changes for 45566. If you see anything missing, please let me know. Also, there are some grd strings no longer necessary. I'll nuke those separately. BUG=49013 TEST=none Review URL: http://codereview.chromium.org/2888020 TBR=sky@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53073 0039d316-1c4b-4281-b951-d872f2087c98
* Makes the toolbar visible for apps again. Here's the set of patches Isky@chromium.org2010-07-201-6/+0
| | | | | | | | | | | | | | reverted: 49016, 47119, 47177, 46930, 46775, and the UI changes for 45566. If you see anything missing, please let me know. Also, there are some grd strings no longer necessary. I'll nuke those separately. BUG=49013 TEST=none Review URL: http://codereview.chromium.org/2888020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53062 0039d316-1c4b-4281-b951-d872f2087c98