summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* Disable background mode when associated pref changes.atwilson@chromium.org2010-08-281-1/+2
| | | | | | | | | | | | | BUG=53173 TEST=new BackgroundModeManager unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57642 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57749 Review URL: http://codereview.chromium.org/3205008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57778 0039d316-1c4b-4281-b951-d872f2087c98
* Add a helper class that keeps per-profile information for FileSystem APIkinuko@chromium.org2010-08-271-0/+9
| | | | | | | | | | | | | | | Reapplying with the correct constructor order in resource_message_filter. The original one was: http://codereview.chromium.org/3028033 Reverted due to rebase/merge failure: http://codereview.chromium.org/3243005 BUG=32277 TEST=FileSystemHostContextTest TBR=dmazzoni Review URL: http://codereview.chromium.org/3244002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57733 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 57715 - Add a helper class that keeps per-profile information for ↵dmazzoni@chromium.org2010-08-271-9/+0
| | | | | | | | | | | | | | FileSystem API BUG=32277 TEST=FileSystemHostContextTest Review URL: http://codereview.chromium.org/3028033 TBR=kinuko@chromium.org Review URL: http://codereview.chromium.org/3243005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57718 0039d316-1c4b-4281-b951-d872f2087c98
* Add a helper class that keeps per-profile information for FileSystem APIkinuko@chromium.org2010-08-271-0/+9
| | | | | | | | | BUG=32277 TEST=FileSystemHostContextTest Review URL: http://codereview.chromium.org/3028033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57715 0039d316-1c4b-4281-b951-d872f2087c98
* Support sending BlobData to browser process. Also support sending UploadDatajianli@chromium.org2010-08-271-0/+12
| | | | | | | | | | | 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 57460 - Add hidden component app for web store.rafaelw@chromium.org2010-08-261-0/+4
| | | | | | | | | | | | | | | | | Fixed ExtensionStartupTest which was essentially counting the number of component extensions. Now it doesn't. Original review here: http://codereview.chromium.org/3116040 This patch adds a component which does not appear on the NTP, but does enforce that gallery urls are isolated in their own process. This is in anticipation of exposing extension api bindings to the gallery so it can install/detect/uninstall extensions & apps. Note that this patch works correctly with the --apps-gallery-url. If specified, the replacement url will be inserted into the component app's extent BUG=27431 TBR=aa Review URL: http://codereview.chromium.org/3104039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57520 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 57460 - Add hidden component app for web store.rafaelw@chromium.org2010-08-261-4/+0
| | | | | | | | | | | | | | | This patch adds a component which does not appear on the NTP, but does enforce that gallery urls are isolated in their own process. This is in anticipation of exposing extension api bindings to the gallery so it can install/detect/uninstall extensions & apps. Note that this patch works correctly with the --apps-gallery-url. If specified, the replacement url will be inserted into the component app's extent BUG=27431 Review URL: http://codereview.chromium.org/3116040 TBR=rafaelw@chromium.org Review URL: http://codereview.chromium.org/3180027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57468 0039d316-1c4b-4281-b951-d872f2087c98
* Add hidden component app for web store.rafaelw@chromium.org2010-08-261-0/+4
| | | | | | | | | | | | This patch adds a component which does not appear on the NTP, but does enforce that gallery urls are isolated in their own process. This is in anticipation of exposing extension api bindings to the gallery so it can install/detect/uninstall extensions & apps. Note that this patch works correctly with the --apps-gallery-url. If specified, the replacement url will be inserted into the component app's extent BUG=27431 Review URL: http://codereview.chromium.org/3116040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57460 0039d316-1c4b-4281-b951-d872f2087c98
* Move prefs-related files under chrome/browser/ into a prefs/ subdir.evan@chromium.org2010-08-261-2/+2
| | | | | | | | | | | | 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
* Move theme files in chrome/browser/ into a themes/ subdir.evan@chromium.org2010-08-251-6/+6
| | | | | | | | | | | Rename (and resort) every #include. BUG=50548 TEST=compiles Review URL: http://codereview.chromium.org/3173043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57375 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: 1st draft of ProxyConfigService for chromeoskuan@chromium.org2010-08-241-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | what this cl is: - a REALLY bare skeleton implementation of ProxyConfigService for chromeos (lots of design details remain to be worked out on the chromeos side, but i needed to get something basic up) - focused on getting chrome part correct, extracting design flow and implementation from linux variant that are relevant to chromeos, e.g.: - provide access of ProxyConfigService interface on IO thread - provide methods on UI thread for UI to read/modify proxy config (like linux's GConf notifications on UI thread) - fetch initial config on UI thread (this is not absolutely necessary for chromeos, 'cos i don't use GConf, but i just follow linux for now) - however, the class is RefCountedThreadSafe (so that both net::ProxyService and DOMUI can access it), and the code resides in chrome/browser/chromeos dir instead of net/proxy. - design details are in .h files - initial config is hardcoded as pac script and loaded as owner (TODO: load this from cros settings persisted on chromeos device) - this should work like the current chromeos session manager which sets the auto-proxy environment variable in login script to the same pac script - implement an augmented analogue to net::ProxyConfig to hold actual proxy config and UI settings (e.g. source and readonly attributes) - backend uses this as the main proxy config, and only converts it to net:::ProxyConfig for network stack on the IO thread in net::ProxyService::GetLatestProxyConfig. - UI methods also use this structure - provide methods to get and set configs from UI thread - UI can use dom_ui->GetProfile()->GetChromeOSProxyConfigServiceImpl() to access these methods on the UI thread - these methods are by no means final - i only added them here to verify the design flow that modifications can be made from UI thread and picked up by IO thread. - david and i will improve or modify them to whatever works best for frontend and backend. - unittest that tests most functionalities: socks and bypass_rules will be enabled in a later cl. TODOs after this cl: - work with UI, load initial config as owner from cros settings - implement policy mechanism, merge it with owner during initial load and modifications - persist proxy settings - etc etc etc BUG=chromium-os:5127 TEST=nothing yet. Review URL: http://codereview.chromium.org/3047052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57204 0039d316-1c4b-4281-b951-d872f2087c98
* When extension is blacklisted by admin policy, it should be removed if ↵finnur@chromium.org2010-08-211-2/+2
| | | | | | | | | | | | | | already running. (Attempt 2 at landing this, this time with changes to fix Enabledness unit test) BUG=51689 TEST=ExtensionsServiceTest.BlacklistedByPolicyRemovedIfRunning Review URL: http://codereview.chromium.org/3166023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56987 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 56738 - Fix CheckFalseTest.CheckFails on Linux after my change to ↵rvargas@google.com2010-08-191-6/+8
| | | | | | | | | | | | | | | | | | ui_test. This makes PathService clear its cache after overriding a path. We have many paths depending on each other, so this is necessary to avoid inconsistencies. TEST=ui_tests in Release mode BUG=49838 Review URL: http://codereview.chromium.org/2805100 TBR=phajdan.jr@chromium.org Review URL: http://codereview.chromium.org/3169031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56778 0039d316-1c4b-4281-b951-d872f2087c98
* Fix CheckFalseTest.CheckFails on Linux after my change to ui_test.phajdan.jr@chromium.org2010-08-191-8/+6
| | | | | | | | | | | | | This makes PathService clear its cache after overriding a path. We have many paths depending on each other, so this is necessary to avoid inconsistencies. TEST=ui_tests in Release mode BUG=49838 Review URL: http://codereview.chromium.org/2805100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56738 0039d316-1c4b-4281-b951-d872f2087c98
* Added BackgroundModeManager which tracks when background apps are ↵atwilson@chromium.org2010-08-181-0/+17
| | | | | | | | | | | | | | | | | | | | loaded/unloaded and puts Chrome into BackgroundMode appropriately. Added EXTENSION_UNINSTALLING notification which is sent out when a notification is about to be uninstalled. Refactored StatusTray code to move StatusTray under the profile rather than attaching it to the browser process, and removed StatusTrayManager which is no longer needed now that BackgroundModeManager handles creating status icons. BUG=43382 TEST=background_mode_manager_unittests.cc Review URL: http://codereview.chromium.org/3134011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56596 0039d316-1c4b-4281-b951-d872f2087c98
* Add and rename histograms for the new DB files.nshkrob@chromium.org2010-08-171-2/+6
| | | | | | | | | | | | The Thumbnails file is renamed to Favicons. The new "Top Sites" DB file is added. TEST=about:histograms BUG=none Review URL: http://codereview.chromium.org/3113002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56374 0039d316-1c4b-4281-b951-d872f2087c98
* Provide a profile.GetAppCacheService() accessor and add two helper methods ↵michaeln@chromium.org2010-08-111-0/+13
| | | | | | | | | | | to ChromeAppCacheService to override the default quota for an origin. BUG=49993 TESTS=existing tests apply Review URL: http://codereview.chromium.org/2819091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55773 0039d316-1c4b-4281-b951-d872f2087c98
* Make prefs use std::string for keys rather than wstrings.viettrungluu@chromium.org2010-08-111-1/+1
| | | | | | | | | | | Much remains to be converted. BUG=23581 TEST=builds and passes tests Review URL: http://codereview.chromium.org/3076037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55660 0039d316-1c4b-4281-b951-d872f2087c98
* Replace --top-sites flag with --no-top-sites flag. TopSites becomes the default.nshkrob@chromium.org2010-08-101-0/+3
| | | | | | | | | | | BUG=none TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55244 Review URL: http://codereview.chromium.org/3054028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55610 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 55450 - Fix CheckFalseTest.CheckFails on Linux after my change to ↵glen@chromium.org2010-08-091-6/+8
| | | | | | | | | | | | | | | | | | | | | ui_test. This makes PathService clear its cache after overriding a path. We have many paths depending on each other, so this is necessary to avoid inconsistencies. Added a comment that PathService::Override should not be called by production code. TEST=ui_tests in Release mode BUG=49838 Review URL: http://codereview.chromium.org/2805100 TBR=phajdan.jr@chromium.org Review URL: http://codereview.chromium.org/3107001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55468 0039d316-1c4b-4281-b951-d872f2087c98
* Fix CheckFalseTest.CheckFails on Linux after my change to ui_test.phajdan.jr@chromium.org2010-08-091-8/+6
| | | | | | | | | | | | | | | | This makes PathService clear its cache after overriding a path. We have many paths depending on each other, so this is necessary to avoid inconsistencies. Added a comment that PathService::Override should not be called by production code. TEST=ui_tests in Release mode BUG=49838 Review URL: http://codereview.chromium.org/2805100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55450 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Replace --top-sites flag with --no-top-sites flag. TopSites becomes ↵phajdan.jr@chromium.org2010-08-061-2/+0
| | | | | | | | | | | | the default." Introduced new crashes. TBR=nshkrob Review URL: http://codereview.chromium.org/3026059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55268 0039d316-1c4b-4281-b951-d872f2087c98
* Replace --top-sites flag with --no-top-sites flag. TopSites becomes the default.nshkrob@chromium.org2010-08-061-0/+2
| | | | | | | | | BUG=none TEST=manual Review URL: http://codereview.chromium.org/3054028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55244 0039d316-1c4b-4281-b951-d872f2087c98
* Refactored extension privilege enumeration and implemented URLPattern ↵cdn@chromium.org2010-08-051-0/+1
| | | | | | | | | | | | | | | | comparisons. This will allow checks on per origin extension resource access. Added origin check when loading extension resources. BUG=45876 TEST=ExtensionTest.IsPrivilegeIncrease TEST=ExtensionTest.EffectiveHostPermissions TEST=ExtensionBrowserTest.OriginPrivileges Review URL: http://codereview.chromium.org/2808051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55103 0039d316-1c4b-4281-b951-d872f2087c98
* First stage of proxy extension API.pam@chromium.org2010-08-041-1/+2
| | | | | | | | | | | | | Adds a basic API that will cover the features available with the --proxy-server command-line switch, once the underlying proxy config is rewritten to actually access the pref dynamically rather than only ever loading a proxy config on startup. BUG=48930 TEST=covered by browser_tests (ExtensionApiTest.Proxy*) Review URL: http://codereview.chromium.org/3074013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54882 0039d316-1c4b-4281-b951-d872f2087c98
* Remove usage of GetSwitchValue for most of chrome/browser/.evan@chromium.org2010-08-041-10/+9
| | | | | | Review URL: http://codereview.chromium.org/3005053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54856 0039d316-1c4b-4281-b951-d872f2087c98
* base: Rename EnvVarGetter to Environment.tfarina@chromium.org2010-08-031-3/+3
| | | | | | | | | | | | | | | Now EnvVarGetter do much more than getting environment variables. Per suggestion from Pawel in http://codereview.chromium.org/3043018/. BUG=None TEST=trybots Signed-off-by: Thiago Farina <tfarina@chromium.org> Review URL: http://codereview.chromium.org/3052034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54696 0039d316-1c4b-4281-b951-d872f2087c98
* Convert more callers of the integer/string functions to usingbrettw@chromium.org2010-07-311-1/+2
| | | | | | | | | | string_number_conversions.h TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/3013046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54454 0039d316-1c4b-4281-b951-d872f2087c98
* Split ProfileImpl out of profile.cc.pathorn@chromium.org2010-07-301-0/+1176
This is a relatively trivial change which moves ProfileImpl into a separate file to avoid depending on its implementation. The fact that no code references ProfileImpl implies that it doesn't need to be public anyway. Does not affect OffTheRecordProfile, since its dependencies are relatively minimal. BUG=none TEST=none Review URL: http://codereview.chromium.org/2806087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54409 0039d316-1c4b-4281-b951-d872f2087c98