| 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 | 755 |
| 756 CancelableRequestConsumer consumer; | 756 CancelableRequestConsumer consumer; |
| 757 history_service->ScheduleDBTask(new QuittingHistoryDBTask(), &consumer); | 757 history_service->ScheduleDBTask(new QuittingHistoryDBTask(), &consumer); |
| 758 MessageLoop::current()->Run(); | 758 MessageLoop::current()->Run(); |
| 759 } | 759 } |
| 760 | 760 |
| 761 chrome_browser_net::Predictor* TestingProfile::GetNetworkPredictor() { | 761 chrome_browser_net::Predictor* TestingProfile::GetNetworkPredictor() { |
| 762 return NULL; | 762 return NULL; |
| 763 } | 763 } |
| 764 | 764 |
| 765 void TestingProfile::ClearNetworkingHistorySince(base::Time time) { | 765 void TestingProfile::ClearNetworkingHistorySince( |
| 766 NOTIMPLEMENTED(); | 766 base::Time time, |
| 767 const base::Closure& completion) { |
| 768 if (!completion.is_null()) { |
| 769 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, completion); |
| 770 } |
| 767 } | 771 } |
| 768 | 772 |
| 769 GURL TestingProfile::GetHomePage() { | 773 GURL TestingProfile::GetHomePage() { |
| 770 return GURL(chrome::kChromeUINewTabURL); | 774 return GURL(chrome::kChromeUINewTabURL); |
| 771 } | 775 } |
| 772 | 776 |
| 773 PrefService* TestingProfile::GetOffTheRecordPrefs() { | 777 PrefService* TestingProfile::GetOffTheRecordPrefs() { |
| 774 return NULL; | 778 return NULL; |
| 775 } | 779 } |
| 776 | 780 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() { | 828 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() { |
| 825 DCHECK(!build_called_); | 829 DCHECK(!build_called_); |
| 826 build_called_ = true; | 830 build_called_ = true; |
| 827 return scoped_ptr<TestingProfile>(new TestingProfile( | 831 return scoped_ptr<TestingProfile>(new TestingProfile( |
| 828 path_, | 832 path_, |
| 829 delegate_, | 833 delegate_, |
| 830 extension_policy_, | 834 extension_policy_, |
| 831 pref_service_.Pass(), | 835 pref_service_.Pass(), |
| 832 user_cloud_policy_manager_.Pass())); | 836 user_cloud_policy_manager_.Pass())); |
| 833 } | 837 } |
| OLD | NEW |