summaryrefslogtreecommitdiffstats
path: root/chrome/test/testing_profile.cc
Commit message (Collapse)AuthorAgeFilesLines
* Move more files from chrome/test to chrome/test/base, part #4phajdan.jr@chromium.org2011-08-011-801/+0
| | | | | | | BUG=90905 Review URL: http://codereview.chromium.org/7544021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94963 0039d316-1c4b-4281-b951-d872f2087c98
* Time-based removal of temporary file systems via BrowsingDataRemovermkwst@chromium.org2011-08-011-1/+6
| | | | | | | | | | | | QuotaManager takes over much of the functionality that BrowsingDataRemover implemented for FileSystem and Appcache removal. It also handles WebSQL databases, but I've left the database deletion in, as IndexedDBs aren't yet handled correctly, so we need to take care of them explicitly. BUG=63700 TEST=unit_tests, test_shell_tests Review URL: http://codereview.chromium.org/7129018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94913 0039d316-1c4b-4281-b951-d872f2087c98
* Move more files from chrome/test to chrome/test/base, part #3phajdan.jr@chromium.org2011-07-291-1/+1
| | | | | | | BUG=90905 Review URL: http://codereview.chromium.org/7541001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94780 0039d316-1c4b-4281-b951-d872f2087c98
* Move more files from chrome/test to chrome/test/base, part #2phajdan.jr@chromium.org2011-07-291-1/+1
| | | | | | | BUG=90905 Review URL: http://codereview.chromium.org/7474025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94749 0039d316-1c4b-4281-b951-d872f2087c98
* Move in_process_browser_test and ui_test_utils to chrome/test/basephajdan.jr@chromium.org2011-07-291-1/+1
| | | | | | | BUG=90905 Review URL: http://codereview.chromium.org/7532034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94720 0039d316-1c4b-4281-b951-d872f2087c98
* Back-end for shortcuts providergeorgey@chromium.org2011-07-221-0/+4
| | | | | | | | BUG=none TEST=unit-tested Review URL: http://codereview.chromium.org/7414001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93680 0039d316-1c4b-4281-b951-d872f2087c98
* Profiles: There should be an equivalent profile creation message to the ↵erg@chromium.org2011-07-221-11/+1
| | | | | | | | | | | | ProfileDependencyManager for non-lazy initialization of services that need to be started with the profile. BUG=77155 TEST=none Review URL: http://codereview.chromium.org/7285014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93574 0039d316-1c4b-4281-b951-d872f2087c98
* Start and stop the safe browsing service depending on whether any profile is ↵joaodasilva@chromium.org2011-07-191-0/+5
| | | | | | | | | | | | | | using it. It is currently always running, even if no profiles uses it. BUG=88661 TEST=Safe browsing should still work as intended. Review URL: http://codereview.chromium.org/7383012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92993 0039d316-1c4b-4281-b951-d872f2087c98
* Remove more unnecessary ChromeURLRequestContext members.willchan@chromium.org2011-07-161-1/+3
| | | | | | | | | | | | | | | | | ProfileIOData is now always deleted on the IO thread. Replaces a use of ChromeURLRequestContextGetter with a ChromeURLDataManagerBackend getter callback. Also gets rid of ExtensionInfoMap from ChromeURLRequestContext by directly passing it into the places that need it. Gets rid of the HTML5 storage objects from ChromeURLRequestContext too. Adds a workaround for TranslateManager's Profile::GetDefaultRequestContext() use, since after this refactoring (by not requiring ChromeURLRequestContextGetter for ChromeURLDataManagerBackend), it prevents having to initialize the ChromeURLRequestContextGetter in most tests since they don't actually use it. This means |default_request_context_| doesn't always get initialized in BrowserMain(), which causes TranslateManager to crash on startup since it requires |default_request_context_| to be initialized. So we forcibly initialize |default_request_context_| until TranslateManager stops depending on this. BUG=89396 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92668 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92690 Review URL: http://codereview.chromium.org/7282054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92804 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 92690 (breaks ChromeOS tests) - Remove more unnecessary ↵willchan@chromium.org2011-07-151-3/+1
| | | | | | | | | | | | | | | | | | | | | ChromeURLRequestContext members. ProfileIOData is now always deleted on the IO thread. Replaces a use of ChromeURLRequestContextGetter with a ChromeURLDataManagerBackend getter callback. Also gets rid of ExtensionInfoMap from ChromeURLRequestContext by directly passing it into the places that need it. Gets rid of the HTML5 storage objects from ChromeURLRequestContext too. Adds a workaround for TranslateManager's Profile::GetDefaultRequestContext() use, since after this refactoring (by not requiring ChromeURLRequestContextGetter for ChromeURLDataManagerBackend), it prevents having to initialize the ChromeURLRequestContextGetter in most tests since they don't actually use it. This means |default_request_context_| doesn't always get initialized in BrowserMain(), which causes TranslateManager to crash on startup since it requires |default_request_context_| to be initialized. So we forcibly initialize |default_request_context_| until TranslateManager stops depending on this. BUG=89396 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92668 Review URL: http://codereview.chromium.org/7282054 TBR=willchan@chromium.org Review URL: http://codereview.chromium.org/7386008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92693 0039d316-1c4b-4281-b951-d872f2087c98
* Remove more unnecessary ChromeURLRequestContext members.willchan@chromium.org2011-07-151-1/+3
| | | | | | | | | | | | | | | | ProfileIOData is now always deleted on the IO thread. Replaces a use of ChromeURLRequestContextGetter with a ChromeURLDataManagerBackend getter callback. Also gets rid of ExtensionInfoMap from ChromeURLRequestContext by directly passing it into the places that need it. Gets rid of the HTML5 storage objects from ChromeURLRequestContext too. Adds a workaround for TranslateManager's Profile::GetDefaultRequestContext() use, since after this refactoring (by not requiring ChromeURLRequestContextGetter for ChromeURLDataManagerBackend), it prevents having to initialize the ChromeURLRequestContextGetter in most tests since they don't actually use it. This means |default_request_context_| doesn't always get initialized in BrowserMain(), which causes TranslateManager to crash on startup since it requires |default_request_context_| to be initialized. So we forcibly initialize |default_request_context_| until TranslateManager stops depending on this. BUG=89396 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92668 Review URL: http://codereview.chromium.org/7282054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92690 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 92668 - Remove more unnecessary ChromeURLRequestContext members.willchan@chromium.org2011-07-151-3/+1
| | | | | | | | | | | | | | | | | ProfileIOData is now always deleted on the IO thread. Replaces a use of ChromeURLRequestContextGetter with a ChromeURLDataManagerBackend getter callback. Also gets rid of ExtensionInfoMap from ChromeURLRequestContext by directly passing it into the places that need it. Gets rid of the HTML5 storage objects from ChromeURLRequestContext too. Adds a workaround for TranslateManager's Profile::GetDefaultRequestContext() use, since after this refactoring (by not requiring ChromeURLRequestContextGetter for ChromeURLDataManagerBackend), it prevents having to initialize the ChromeURLRequestContextGetter in most tests since they don't actually use it. This means |default_request_context_| doesn't always get initialized in BrowserMain(), which causes TranslateManager to crash on startup since it requires |default_request_context_| to be initialized. So we forcibly initialize |default_request_context_| until TranslateManager stops depending on this. BUG=89396 TEST=none Review URL: http://codereview.chromium.org/7282054 TBR=willchan@chromium.org Review URL: http://codereview.chromium.org/7384008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92673 0039d316-1c4b-4281-b951-d872f2087c98
* Remove more unnecessary ChromeURLRequestContext members.willchan@chromium.org2011-07-151-1/+3
| | | | | | | | | | | | | | ProfileIOData is now always deleted on the IO thread. Replaces a use of ChromeURLRequestContextGetter with a ChromeURLDataManagerBackend getter callback. Also gets rid of ExtensionInfoMap from ChromeURLRequestContext by directly passing it into the places that need it. Gets rid of the HTML5 storage objects from ChromeURLRequestContext too. Adds a workaround for TranslateManager's Profile::GetDefaultRequestContext() use, since after this refactoring (by not requiring ChromeURLRequestContextGetter for ChromeURLDataManagerBackend), it prevents having to initialize the ChromeURLRequestContextGetter in most tests since they don't actually use it. This means |default_request_context_| doesn't always get initialized in BrowserMain(), which causes TranslateManager to crash on startup since it requires |default_request_context_| to be initialized. So we forcibly initialize |default_request_context_| until TranslateManager stops depending on this. BUG=89396 TEST=none Review URL: http://codereview.chromium.org/7282054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92668 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of the ProfileId. It was added for ceee. I reverted the original ↵jam@chromium.org2011-07-131-13/+0
| | | | | | | | | change, since it led to Profile being used in content unnecessarily. I also removed the extensions usage of it and instead kept a void*. BUG=76788 Review URL: http://codereview.chromium.org/7346024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92382 0039d316-1c4b-4281-b951-d872f2087c98
* Adding a test for the appcache removal functionality of BrowsingDataRemover.marja@google.com2011-07-121-1/+11
| | | | | | | | | | BUG=NONE TEST=BrowsingDataRemoverTest.RemoveAppCacheForever Review URL: http://codereview.chromium.org/7324046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92166 0039d316-1c4b-4281-b951-d872f2087c98
* Explicitly ShutdownOnUIThread the HostContentSettingsMap when destroying the ↵bauerb@chromium.org2011-07-121-5/+7
| | | | | | | | | | | | Profile. Also, get rid of Profile dependencies while we're at it. BUG=88037,88557 Review URL: http://codereview.chromium.org/7218073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92128 0039d316-1c4b-4281-b951-d872f2087c98
* Moving notification types which are chrome specific to a new header file ↵ananta@chromium.org2011-07-101-2/+3
| | | | | | | | | | | | | chrome_notification_types.h. This file lives in chrome\common. The chrome specific notifications start from NOTIFICATION_CONTENT_END which defines the end of the enum used by content to define notification types. The notificaton_type.h file in content\common has been renamed to content_notification_types.h BUG=76698 Review URL: http://codereview.chromium.org/7327007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91972 0039d316-1c4b-4281-b951-d872f2087c98
* Pass AudioRendererHost data to MediaInternals.scottfr@chromium.org2011-07-081-1/+1
| | | | | | | | | BUG=none TEST=compiles, unittests Review URL: http://codereview.chromium.org/7217025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91908 0039d316-1c4b-4281-b951-d872f2087c98
* Move code to clear web databases on shutdown to the database trackerjochen@chromium.org2011-07-081-1/+2
| | | | | | | | | | BUG=86928 TEST=test_shell_tests Review URL: http://codereview.chromium.org/7234014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91817 0039d316-1c4b-4281-b951-d872f2087c98
* Profiles: Make NTPResourceCache a ProfileKeyedService.erg@chromium.org2011-06-291-7/+0
| | | | | | | | | | BUG=77155 TEST=none Review URL: http://codereview.chromium.org/7248038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91049 0039d316-1c4b-4281-b951-d872f2087c98
* Split out abstract interface from GeolocationPermissionContextjoth@chromium.org2011-06-231-2/+2
| | | | | | | | | | | This allows clear separation of chrome from content without requiring a link-time dependency from content onto the embedder to provide the permission context implementaiton. BUG=None TEST=No new tests. Review URL: http://codereview.chromium.org/7037005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90196 0039d316-1c4b-4281-b951-d872f2087c98
* Moved files related to background mode to browser/background.atwilson@chromium.org2011-06-171-1/+1
| | | | | | | | | BUG=none TEST=If it compiles, it works. Review URL: http://codereview.chromium.org/7187028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89497 0039d316-1c4b-4281-b951-d872f2087c98
* Changes TemplateURLModel into TemplateURLService. Changes all access points ↵erg@google.com2011-06-071-11/+14
| | | | | | | | | | | | | | to go through the newly made ProfileKeyedServiceFactory subclass. In addition, makes further modifications to the unit testing stuff because the TemplateURL tests change the active TemplateURLService on a profile during the test. BUG=77155 TEST=unit tests R=mirandac Review URL: http://codereview.chromium.org/7056056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88153 0039d316-1c4b-4281-b951-d872f2087c98
* Integrate file systems with BrowsingDataRemovermkwst@chromium.org2011-06-071-2/+3
| | | | | | | | | | | The functionality desired isn't entirely clear. This CL takes care of the bits that everyone agrees on: when a user deletes her browsing data "since the beginning of time" both persistent and temporary filesystems are removed entirely. What we do for other time periods is still up in the air. BUG=63700 TEST=unit_tests Review URL: http://codereview.chromium.org/7087020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88119 0039d316-1c4b-4281-b951-d872f2087c98
* Initial IndexedDBQuotaClient implementationdgrogan@chromium.org2011-06-031-1/+1
| | | | | | | | | | | | | | | | * Heavily based off of DatabaseQuotaClient. * Only responds to one request so far, GetOriginUsage. BUG=83652 TEST=llvm/Debug/unit_tests --gtest_filter=IndexedDB* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87076 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87424 Review URL: http://codereview.chromium.org/7053030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87834 0039d316-1c4b-4281-b951-d872f2087c98
* Modify how ProfileKeyedServiceFactories deal with testing. There are 4 ↵erg@google.com2011-06-031-7/+5
| | | | | | | | | | | | | | | | | | | different cases in unit tests that we have to handle and the current system only handles 3 of them. The three cases that it currently handles are: 1) Forcing an association between a single Profile instance and a ProfileKeyedService instance. 2) Setting up a TestingProfile to always have a NULL service instance. 3) Setting up a TestingProfile to always use a special factory to build an instance. Other unit tests require more capabilities: 4) A TestingProfile defaults to always having a NULL service instance. Specific tests that test only certain parts of the Profile want test specific mocks. The changes allow an instance of TestingProfile to default to always NULLing, but being overridden in individual tests and only for that instance. BUG=77155 TEST=none Review URL: http://codereview.chromium.org/7088020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87802 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 87424 - Initial IndexedDBQuotaClient implementationthestig@chromium.org2011-06-011-1/+1
| | | | | | | | | | | | | | | | | * Heavily based off of DatabaseQuotaClient. * Only responds to one request so far, GetOriginUsage. BUG=83652 TEST=llvm/Debug/unit_tests --gtest_filter=IndexedDB* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87076 Review URL: http://codereview.chromium.org/7053030 TBR=dgrogan@chromium.org Review URL: http://codereview.chromium.org/7027022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87428 0039d316-1c4b-4281-b951-d872f2087c98
* Initial IndexedDBQuotaClient implementationdgrogan@chromium.org2011-06-011-1/+1
| | | | | | | | | | | | | | * Heavily based off of DatabaseQuotaClient. * Only responds to one request so far, GetOriginUsage. BUG=83652 TEST=llvm/Debug/unit_tests --gtest_filter=IndexedDB* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87076 Review URL: http://codereview.chromium.org/7053030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87424 0039d316-1c4b-4281-b951-d872f2087c98
* Modifying the BackgroundModeManager to handle multiple profiles.rlp@chromium.org2011-05-281-4/+0
| | | | | | | | | | | | | | | The background mode manager is now owned by the broser The status tray is also owned by the browser process since there is only one per browser. Previously it was owned by the profile, but now that there are multiple profiles, it makes sense to have the browser process own it. Note: This CL does not unify the status tray into one icon. TEST=unittests (added BackgroundModeManagerTest::MultiProfile) BUG=80069, 82215 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86726 Review URL: http://codereview.chromium.org/6914021 Review URL: http://codereview.chromium.org/7008026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87119 0039d316-1c4b-4281-b951-d872f2087c98
* revert 87108 and 87076dgrogan@chromium.org2011-05-271-1/+1
| | | | | | TBR=msw_ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87112 0039d316-1c4b-4281-b951-d872f2087c98
* Initial IndexedDBQuotaClient implementationdgrogan@chromium.org2011-05-271-1/+1
| | | | | | | | | | | | * Heavily based off of DatabaseQuotaClient. * Only responds to one request so far, GetOriginUsage. BUG=83652 TEST=llvm/Debug/unit_tests --gtest_filter=IndexedDB* Review URL: http://codereview.chromium.org/7053030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87076 0039d316-1c4b-4281-b951-d872f2087c98
* Profiles: When built in debug mode, NOTREACHED() after a Profile is shutdown ↵erg@google.com2011-05-261-0/+4
| | | | | | | | | | | if it is accessed. BUG=77155 TEST=These extra NOTREACHED() don't trigger. Review URL: http://codereview.chromium.org/7074019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86929 0039d316-1c4b-4281-b951-d872f2087c98
* Adding `browsing_data_filesystem_helper*` as the first step towards content ↵mkwst@chromium.org2011-05-261-1/+15
| | | | | | | | | | | | | | settings UI. gypi files. BUG=63703 TEST=BrowsingDataFilesystemHelperTest* in `browser_tests` and `unit_tests` Review URL: http://codereview.chromium.org/7063020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86904 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 86724 - Modifying the BackgroundModeManager to handle multiple profiles.vandebo@chromium.org2011-05-251-0/+4
| | | | | | | | | | | | | | | | The background mode manager is now owned by the broser The status tray is also owned by the browser process since there is only one per browser. Previously it was owned by the profile, but now that there are multiple profiles, it makes sense to have the browser process own it. Note: This CL does not unify the status tray into one icon. TEST=unittests (added BackgroundModeManagerTest::MultiProfile) BUG=80069,82215 Review URL: http://codereview.chromium.org/6914021 TBR=rlp@chromium.org Review URL: http://codereview.chromium.org/7068025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86726 0039d316-1c4b-4281-b951-d872f2087c98
* Modifying the BackgroundModeManager to handle multiple profiles.rlp@chromium.org2011-05-251-4/+0
| | | | | | | | | | | | | The background mode manager is now owned by the broser The status tray is also owned by the browser process since there is only one per browser. Previously it was owned by the profile, but now that there are multiple profiles, it makes sense to have the browser process own it. Note: This CL does not unify the status tray into one icon. TEST=unittests (added BackgroundModeManagerTest::MultiProfile) BUG=80069,82215 Review URL: http://codereview.chromium.org/6914021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86724 0039d316-1c4b-4281-b951-d872f2087c98
* Remove a chrome dependency by removing Prerender from ResourceDispatcherHost.dominich@chromium.org2011-05-251-2/+5
| | | | | | | | | BUG=82590,77090 TEST=Prerender* Review URL: http://codereview.chromium.org/6966017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86667 0039d316-1c4b-4281-b951-d872f2087c98
* Renames BookmarkModelObserver::BookmarkNodeFaviconLoaded tosky@chromium.org2011-05-231-33/+1
| | | | | | | | | | | | | | BookmarkNodeFaviconChanged and makes it so we send it instead of BookmarkNodeChanged if the favicon changes. BUG=51501 TEST=see bug R=tim@chromium.org TBR=phadjan.jr@chromium.org, erikkay@chromium.org, maf@chromium.org, erg@chromium.org, ben@chromium.org Review URL: http://codereview.chromium.org/7055021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86290 0039d316-1c4b-4281-b951-d872f2087c98
* Implementation of DatabaseQuotaClient for the WebSQLDatabase system.michaeln@google.com2011-05-101-1/+1
| | | | | | | | | | In this CL the the 'client' interface is implemented, but the QuotaManager is not notified of changes as they occur, and the hard-coded 5MB limits imposed by the DB system are still being used. BUG=61676 TEST=database_quota_client_unittest.cc Review URL: http://codereview.chromium.org/6904111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84865 0039d316-1c4b-4281-b951-d872f2087c98
* Add unit test and 'ignore' functionality to ProtocolHandlerRegistry.koz@chromium.org2011-05-021-1/+2
| | | | | | | | | | | | | When we change the infobar to make use of this functionality it will make it feasible for sites to make registerProtocolHandler calls on load, instead of in response to a user action. BUG= TEST=Unit test provided. Review URL: http://codereview.chromium.org/6878094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83751 0039d316-1c4b-4281-b951-d872f2087c98
* Favicon file shuffling.avi@chromium.org2011-04-281-1/+1
| | | | | | | | | | | Moves them to their own directory, renames the Helper to TabHelper in prep for moving it to TabContentsWrapper. BUG=71097 TEST=none Review URL: http://codereview.chromium.org/6902125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83425 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up ExtensionService shutdown and related notifications.aa@chromium.org2011-04-281-1/+0
| | | | | | | | | | | | It is not necessary to unload extensions during destruction because that only happens when the profile is going away, so the unloading would be wasted effort. With that gone, you can also get rid of DestroyingProfile(), which simplifies things. Also moved all hooking of outside components that happens during extension load and unload into a central location. Review URL: http://codereview.chromium.org/6902059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83408 0039d316-1c4b-4281-b951-d872f2087c98
* Move WebUI ntp files into new ntp directory.estade@chromium.org2011-04-281-1/+1
| | | | | | | | | | | And add myself to an ntp watchlist. BUG=none TEST=trybots Review URL: http://codereview.chromium.org/6905067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83379 0039d316-1c4b-4281-b951-d872f2087c98
* Profile shouldn't own Session/TabRestore services.torne@chromium.org2011-04-281-17/+4
| | | | | | | | | | | | | | BaseSessionService is now a ProfileKeyedService. Its subclasses, SessionService and TabRestoreService, are now accessed through factories. BUG=77155 TEST=existing tests Review URL: http://codereview.chromium.org/6901031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83325 0039d316-1c4b-4281-b951-d872f2087c98
* With this implementation, logging on to sync logs you in to the multiprofile ↵mirandac@chromium.org2011-04-281-0/+4
| | | | | | | | | | | | | | | | | system (if --multi-profiles flag is on). A drop-down menu then appears, from which you can create a new profile; this will open a browser window from which you can sync to a different Google account. When the browser is shut down, the active profile is saved. This profile will be used when the browser is reopened. Many things need to be added -- there's no duplicate checking, no way to delete a profile, and no color scheme -- etc. This is just the most basic multi-profile functionality. BUG=60105 TEST=existing tests; full suite to come. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83261 Review URL: http://codereview.chromium.org/6881054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83284 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r83261 "With this implementation, logging on to sync logs you in to ↵maruel@chromium.org2011-04-281-4/+0
| | | | | | | | | | | | | | the multiprofile ..." Broke Linux Builder (dbg)(shlib) TBR=mirandac@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/6902097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83263 0039d316-1c4b-4281-b951-d872f2087c98
* With this implementation, logging on to sync logs you in to the multiprofile ↵mirandac@chromium.org2011-04-281-0/+4
| | | | | | | | | | | | | | | | system (if --multi-profiles flag is on). A drop-down menu then appears, from which you can create a new profile; this will open a browser window from which you can sync to a different Google account. When the browser is shut down, the active profile is saved. This profile will be used when the browser is reopened. Many things need to be added -- there's no duplicate checking, no way to delete a profile, and no color scheme -- etc. This is just the most basic multi-profile functionality. BUG=60105 TEST=existing tests; full suite to come. Review URL: http://codereview.chromium.org/6881054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83261 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 83198 - Remove DestroyingProfile from a few places.These guys are ↵aa@chromium.org2011-04-271-0/+1
| | | | | | | | | both non-refcounted and have a lifetime that isexactly equivalent to Profile.The DestroyingProfile code dates to a time whenExtensionService was ref-counted.Review URL: http://codereview.chromium.org/6905050 TBR=aa@chromium.org Review URL: http://codereview.chromium.org/6902085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83209 0039d316-1c4b-4281-b951-d872f2087c98
* Remove DestroyingProfile from a few places.aa@chromium.org2011-04-271-1/+0
| | | | | | | | | | | | These guys are both non-refcounted and have a lifetime that is exactly equivalent to Profile. The DestroyingProfile code dates to a time when ExtensionService was ref-counted. Review URL: http://codereview.chromium.org/6905050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83198 0039d316-1c4b-4281-b951-d872f2087c98
* Add 1st cut of QuotaManager codekinuko@chromium.org2011-04-271-0/+4
| | | | | | | | | | | | | | No persistent storage support yet. Some notes: - There are a lot of TODOs especially for persistent type storage handling. - QuotaTask base class is for now only subclassed by QuotaInitializeTask, but it is planned to add more subclasses. BUG=61676,79639 TEST=QuotaManagerTest.* Review URL: http://codereview.chromium.org/6826052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83145 0039d316-1c4b-4281-b951-d872f2087c98
* Profile shouldn't own ProfilePolicyConnector. Introduce ↵jknotten@chromium.org2011-04-271-4/+0
| | | | | | | | | | | | | | | | | | BrowserPolicyConnector::Create. ProfilePolicyConnector is now owned by ProfilePolicyConnectorFactory, using Profile has a key. This uses the ProfileKeyedService infrastructure originally created for ThemeServiceFactory. Also introduce BrowserPolicyConnector::Create method to faciliate stubbing out for binary-size reduction purposes. BUG=77155 TEST=Existing Review URL: http://codereview.chromium.org/6902036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83143 0039d316-1c4b-4281-b951-d872f2087c98