| 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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 } | 831 } |
| 832 | 832 |
| 833 content::BrowserPluginGuestManager* TestingProfile::GetGuestManager() { | 833 content::BrowserPluginGuestManager* TestingProfile::GetGuestManager() { |
| 834 #if defined(ENABLE_EXTENSIONS) | 834 #if defined(ENABLE_EXTENSIONS) |
| 835 return GuestViewManager::FromBrowserContext(this); | 835 return GuestViewManager::FromBrowserContext(this); |
| 836 #else | 836 #else |
| 837 return NULL; | 837 return NULL; |
| 838 #endif | 838 #endif |
| 839 } | 839 } |
| 840 | 840 |
| 841 content::PushMessagingService* TestingProfile::GetPushMessagingService() { | |
| 842 return NULL; | |
| 843 } | |
| 844 | |
| 845 bool TestingProfile::IsSameProfile(Profile *p) { | 841 bool TestingProfile::IsSameProfile(Profile *p) { |
| 846 return this == p; | 842 return this == p; |
| 847 } | 843 } |
| 848 | 844 |
| 849 base::Time TestingProfile::GetStartTime() const { | 845 base::Time TestingProfile::GetStartTime() const { |
| 850 return start_time_; | 846 return start_time_; |
| 851 } | 847 } |
| 852 | 848 |
| 853 base::FilePath TestingProfile::last_selected_directory() { | 849 base::FilePath TestingProfile::last_selected_directory() { |
| 854 return last_selected_directory_; | 850 return last_selected_directory_; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 987 path_, | 983 path_, |
| 988 delegate_, | 984 delegate_, |
| 989 extension_policy_, | 985 extension_policy_, |
| 990 pref_service_.Pass(), | 986 pref_service_.Pass(), |
| 991 incognito_, | 987 incognito_, |
| 992 guest_session_, | 988 guest_session_, |
| 993 supervised_user_id_, | 989 supervised_user_id_, |
| 994 policy_service_.Pass(), | 990 policy_service_.Pass(), |
| 995 testing_factories_)); | 991 testing_factories_)); |
| 996 } | 992 } |
| OLD | NEW |