| 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/testing_profile.h" | 5 #include "chrome/test/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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 return NULL; | 789 return NULL; |
| 790 if (!prerender_manager_) | 790 if (!prerender_manager_) |
| 791 prerender_manager_ = new prerender::PrerenderManager(this); | 791 prerender_manager_ = new prerender::PrerenderManager(this); |
| 792 return prerender_manager_; | 792 return prerender_manager_; |
| 793 } | 793 } |
| 794 | 794 |
| 795 PrefService* TestingProfile::GetOffTheRecordPrefs() { | 795 PrefService* TestingProfile::GetOffTheRecordPrefs() { |
| 796 return NULL; | 796 return NULL; |
| 797 } | 797 } |
| 798 | 798 |
| 799 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
| 800 return GetExtensionSpecialStoragePolicy(); |
| 801 } |
| 802 |
| 799 void TestingProfile::DestroyWebDataService() { | 803 void TestingProfile::DestroyWebDataService() { |
| 800 if (!web_data_service_.get()) | 804 if (!web_data_service_.get()) |
| 801 return; | 805 return; |
| 802 | 806 |
| 803 web_data_service_->Shutdown(); | 807 web_data_service_->Shutdown(); |
| 804 } | 808 } |
| 805 | 809 |
| 806 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) | 810 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) |
| 807 : original_profile_(profile) {} | 811 : original_profile_(profile) {} |
| 808 | 812 |
| 809 DerivedTestingProfile::~DerivedTestingProfile() {} | 813 DerivedTestingProfile::~DerivedTestingProfile() {} |
| 810 | 814 |
| 811 ProfileId DerivedTestingProfile::GetRuntimeId() { | 815 ProfileId DerivedTestingProfile::GetRuntimeId() { |
| 812 return original_profile_->GetRuntimeId(); | 816 return original_profile_->GetRuntimeId(); |
| 813 } | 817 } |
| OLD | NEW |