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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 WebKitContext* TestingProfile::GetOffTheRecordWebKitContext() { | 670 WebKitContext* TestingProfile::GetOffTheRecordWebKitContext() { |
671 return NULL; | 671 return NULL; |
672 } | 672 } |
673 | 673 |
674 NTPResourceCache* TestingProfile::GetNTPResourceCache() { | 674 NTPResourceCache* TestingProfile::GetNTPResourceCache() { |
675 if (!ntp_resource_cache_.get()) | 675 if (!ntp_resource_cache_.get()) |
676 ntp_resource_cache_.reset(new NTPResourceCache(this)); | 676 ntp_resource_cache_.reset(new NTPResourceCache(this)); |
677 return ntp_resource_cache_.get(); | 677 return ntp_resource_cache_.get(); |
678 } | 678 } |
679 | 679 |
| 680 StatusTray* TestingProfile::GetStatusTray() { |
| 681 return NULL; |
| 682 } |
| 683 |
680 FilePath TestingProfile::last_selected_directory() { | 684 FilePath TestingProfile::last_selected_directory() { |
681 return last_selected_directory_; | 685 return last_selected_directory_; |
682 } | 686 } |
683 | 687 |
684 void TestingProfile::set_last_selected_directory(const FilePath& path) { | 688 void TestingProfile::set_last_selected_directory(const FilePath& path) { |
685 last_selected_directory_ = path; | 689 last_selected_directory_ = path; |
686 } | 690 } |
687 | 691 |
688 PrefProxyConfigTracker* TestingProfile::GetProxyConfigTracker() { | 692 PrefProxyConfigTracker* TestingProfile::GetProxyConfigTracker() { |
689 if (!pref_proxy_config_tracker_) | 693 if (!pref_proxy_config_tracker_) |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 } | 776 } |
773 | 777 |
774 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) | 778 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) |
775 : original_profile_(profile) {} | 779 : original_profile_(profile) {} |
776 | 780 |
777 DerivedTestingProfile::~DerivedTestingProfile() {} | 781 DerivedTestingProfile::~DerivedTestingProfile() {} |
778 | 782 |
779 ProfileId DerivedTestingProfile::GetRuntimeId() { | 783 ProfileId DerivedTestingProfile::GetRuntimeId() { |
780 return original_profile_->GetRuntimeId(); | 784 return original_profile_->GetRuntimeId(); |
781 } | 785 } |
OLD | NEW |