| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/test/base/testing_profile.h" | 5 #include "chrome/test/base/testing_profile.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 } | 525 } |
| 526 | 526 |
| 527 history::TopSites* TestingProfile::GetTopSitesWithoutCreating() { | 527 history::TopSites* TestingProfile::GetTopSitesWithoutCreating() { |
| 528 return top_sites_.get(); | 528 return top_sites_.get(); |
| 529 } | 529 } |
| 530 | 530 |
| 531 DownloadManager* TestingProfile::GetDownloadManager() { | 531 DownloadManager* TestingProfile::GetDownloadManager() { |
| 532 return NULL; | 532 return NULL; |
| 533 } | 533 } |
| 534 | 534 |
| 535 PersonalDataManager* TestingProfile::GetPersonalDataManager() { | |
| 536 return NULL; | |
| 537 } | |
| 538 | |
| 539 fileapi::FileSystemContext* TestingProfile::GetFileSystemContext() { | 535 fileapi::FileSystemContext* TestingProfile::GetFileSystemContext() { |
| 540 if (!file_system_context_) { | 536 if (!file_system_context_) { |
| 541 file_system_context_ = new fileapi::FileSystemContext( | 537 file_system_context_ = new fileapi::FileSystemContext( |
| 542 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), | 538 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), |
| 543 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), | 539 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), |
| 544 GetExtensionSpecialStoragePolicy(), | 540 GetExtensionSpecialStoragePolicy(), |
| 545 NULL, | 541 NULL, |
| 546 GetPath(), | 542 GetPath(), |
| 547 IsOffTheRecord(), | 543 IsOffTheRecord(), |
| 548 true, // Allow file access from files. | 544 true, // Allow file access from files. |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 793 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
| 798 return GetExtensionSpecialStoragePolicy(); | 794 return GetExtensionSpecialStoragePolicy(); |
| 799 } | 795 } |
| 800 | 796 |
| 801 void TestingProfile::DestroyWebDataService() { | 797 void TestingProfile::DestroyWebDataService() { |
| 802 if (!web_data_service_.get()) | 798 if (!web_data_service_.get()) |
| 803 return; | 799 return; |
| 804 | 800 |
| 805 web_data_service_->Shutdown(); | 801 web_data_service_->Shutdown(); |
| 806 } | 802 } |
| OLD | NEW |