OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 } | 887 } |
888 | 888 |
889 void TestingProfile::ClearNetworkingHistorySince( | 889 void TestingProfile::ClearNetworkingHistorySince( |
890 base::Time time, | 890 base::Time time, |
891 const base::Closure& completion) { | 891 const base::Closure& completion) { |
892 if (!completion.is_null()) { | 892 if (!completion.is_null()) { |
893 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, completion); | 893 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, completion); |
894 } | 894 } |
895 } | 895 } |
896 | 896 |
| 897 void TestingProfile::ClearDomainReliabilityMonitor( |
| 898 domain_reliability::DomainReliabilityClearMode mode, |
| 899 const base::Closure& completion) { |
| 900 if (!completion.is_null()) { |
| 901 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, completion); |
| 902 } |
| 903 } |
| 904 |
897 GURL TestingProfile::GetHomePage() { | 905 GURL TestingProfile::GetHomePage() { |
898 return GURL(chrome::kChromeUINewTabURL); | 906 return GURL(chrome::kChromeUINewTabURL); |
899 } | 907 } |
900 | 908 |
901 PrefService* TestingProfile::GetOffTheRecordPrefs() { | 909 PrefService* TestingProfile::GetOffTheRecordPrefs() { |
902 return NULL; | 910 return NULL; |
903 } | 911 } |
904 | 912 |
905 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 913 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
906 return GetExtensionSpecialStoragePolicy(); | 914 return GetExtensionSpecialStoragePolicy(); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 path_, | 986 path_, |
979 delegate_, | 987 delegate_, |
980 extension_policy_, | 988 extension_policy_, |
981 pref_service_.Pass(), | 989 pref_service_.Pass(), |
982 incognito_, | 990 incognito_, |
983 guest_session_, | 991 guest_session_, |
984 managed_user_id_, | 992 managed_user_id_, |
985 policy_service_.Pass(), | 993 policy_service_.Pass(), |
986 testing_factories_)); | 994 testing_factories_)); |
987 } | 995 } |
OLD | NEW |