| 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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 WebKitContext* TestingProfile::GetOffTheRecordWebKitContext() { | 701 WebKitContext* TestingProfile::GetOffTheRecordWebKitContext() { |
| 702 return NULL; | 702 return NULL; |
| 703 } | 703 } |
| 704 | 704 |
| 705 NTPResourceCache* TestingProfile::GetNTPResourceCache() { | 705 NTPResourceCache* TestingProfile::GetNTPResourceCache() { |
| 706 if (!ntp_resource_cache_.get()) | 706 if (!ntp_resource_cache_.get()) |
| 707 ntp_resource_cache_.reset(new NTPResourceCache(this)); | 707 ntp_resource_cache_.reset(new NTPResourceCache(this)); |
| 708 return ntp_resource_cache_.get(); | 708 return ntp_resource_cache_.get(); |
| 709 } | 709 } |
| 710 | 710 |
| 711 StatusTray* TestingProfile::GetStatusTray() { | |
| 712 return NULL; | |
| 713 } | |
| 714 | |
| 715 FilePath TestingProfile::last_selected_directory() { | 711 FilePath TestingProfile::last_selected_directory() { |
| 716 return last_selected_directory_; | 712 return last_selected_directory_; |
| 717 } | 713 } |
| 718 | 714 |
| 719 void TestingProfile::set_last_selected_directory(const FilePath& path) { | 715 void TestingProfile::set_last_selected_directory(const FilePath& path) { |
| 720 last_selected_directory_ = path; | 716 last_selected_directory_ = path; |
| 721 } | 717 } |
| 722 | 718 |
| 723 PrefProxyConfigTracker* TestingProfile::GetProxyConfigTracker() { | 719 PrefProxyConfigTracker* TestingProfile::GetProxyConfigTracker() { |
| 724 if (!pref_proxy_config_tracker_) | 720 if (!pref_proxy_config_tracker_) |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 } | 801 } |
| 806 | 802 |
| 807 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) | 803 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) |
| 808 : original_profile_(profile) {} | 804 : original_profile_(profile) {} |
| 809 | 805 |
| 810 DerivedTestingProfile::~DerivedTestingProfile() {} | 806 DerivedTestingProfile::~DerivedTestingProfile() {} |
| 811 | 807 |
| 812 ProfileId DerivedTestingProfile::GetRuntimeId() { | 808 ProfileId DerivedTestingProfile::GetRuntimeId() { |
| 813 return original_profile_->GetRuntimeId(); | 809 return original_profile_->GetRuntimeId(); |
| 814 } | 810 } |
| OLD | NEW |