| Index: chrome/test/base/testing_profile.cc
|
| ===================================================================
|
| --- chrome/test/base/testing_profile.cc (revision 122721)
|
| +++ chrome/test/base/testing_profile.cc (working copy)
|
| @@ -127,14 +127,6 @@
|
| return new DesktopNotificationService(profile, NULL);
|
| }
|
|
|
| -fileapi::FileSystemOptions CreateTestingFileSystemOptions(bool is_incognito) {
|
| - return fileapi::FileSystemOptions(
|
| - is_incognito
|
| - ? fileapi::FileSystemOptions::PROFILE_MODE_INCOGNITO
|
| - : fileapi::FileSystemOptions::PROFILE_MODE_NORMAL,
|
| - std::vector<std::string>());
|
| -}
|
| -
|
| } // namespace
|
|
|
| TestingProfile::TestingProfile()
|
| @@ -244,9 +236,6 @@
|
|
|
| if (pref_proxy_config_tracker_.get())
|
| pref_proxy_config_tracker_->DetachFromPrefService();
|
| -
|
| - // Close the handles so that proper cleanup can be done.
|
| - db_tracker_ = NULL;
|
| }
|
|
|
| void TestingProfile::CreateFaviconService() {
|
| @@ -474,24 +463,6 @@
|
| return this;
|
| }
|
|
|
| -void TestingProfile::SetAppCacheService(
|
| - ChromeAppCacheService* appcache_service) {
|
| - appcache_service_ = appcache_service;
|
| -}
|
| -
|
| -ChromeAppCacheService* TestingProfile::GetAppCacheService() {
|
| - return appcache_service_.get();
|
| -}
|
| -
|
| -webkit_database::DatabaseTracker* TestingProfile::GetDatabaseTracker() {
|
| - if (!db_tracker_) {
|
| - db_tracker_ = new webkit_database::DatabaseTracker(
|
| - GetPath(), false, false, GetExtensionSpecialStoragePolicy(),
|
| - NULL, NULL);
|
| - }
|
| - return db_tracker_;
|
| -}
|
| -
|
| VisitedLinkMaster* TestingProfile::GetVisitedLinkMaster() {
|
| return NULL;
|
| }
|
| @@ -606,27 +577,6 @@
|
| return NULL;
|
| }
|
|
|
| -fileapi::FileSystemContext* TestingProfile::GetFileSystemContext() {
|
| - if (!file_system_context_) {
|
| - file_system_context_ = new fileapi::FileSystemContext(
|
| - BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
|
| - BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
|
| - GetExtensionSpecialStoragePolicy(),
|
| - NULL,
|
| - GetPath(),
|
| - CreateTestingFileSystemOptions(IsOffTheRecord()));
|
| - }
|
| - return file_system_context_.get();
|
| -}
|
| -
|
| -void TestingProfile::SetQuotaManager(quota::QuotaManager* manager) {
|
| - quota_manager_ = manager;
|
| -}
|
| -
|
| -quota::QuotaManager* TestingProfile::GetQuotaManager() {
|
| - return quota_manager_.get();
|
| -}
|
| -
|
| net::URLRequestContextGetter* TestingProfile::GetRequestContext() {
|
| return request_context_.get();
|
| }
|
| @@ -740,16 +690,6 @@
|
| return protocol_handler_registry_.get();
|
| }
|
|
|
| -WebKitContext* TestingProfile::GetWebKitContext() {
|
| - if (webkit_context_ == NULL) {
|
| - webkit_context_ = new WebKitContext(
|
| - IsOffTheRecord(), GetPath(),
|
| - GetExtensionSpecialStoragePolicy(),
|
| - false, NULL, NULL);
|
| - }
|
| - return webkit_context_;
|
| -}
|
| -
|
| WebKitContext* TestingProfile::GetOffTheRecordWebKitContext() {
|
| return NULL;
|
| }
|
| @@ -786,10 +726,6 @@
|
| return token_service_.get();
|
| }
|
|
|
| -ChromeBlobStorageContext* TestingProfile::GetBlobStorageContext() {
|
| - return NULL;
|
| -}
|
| -
|
| ExtensionInfoMap* TestingProfile::GetExtensionInfoMap() {
|
| return NULL;
|
| }
|
|
|