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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 } | 840 } |
841 | 841 |
842 content::BrowserPluginGuestManager* TestingProfile::GetGuestManager() { | 842 content::BrowserPluginGuestManager* TestingProfile::GetGuestManager() { |
843 #if defined(ENABLE_EXTENSIONS) | 843 #if defined(ENABLE_EXTENSIONS) |
844 return GuestViewManager::FromBrowserContext(this); | 844 return GuestViewManager::FromBrowserContext(this); |
845 #else | 845 #else |
846 return NULL; | 846 return NULL; |
847 #endif | 847 #endif |
848 } | 848 } |
849 | 849 |
| 850 content::PushMessagingService* TestingProfile::GetPushMessagingService() { |
| 851 return NULL; |
| 852 } |
| 853 |
850 bool TestingProfile::IsSameProfile(Profile *p) { | 854 bool TestingProfile::IsSameProfile(Profile *p) { |
851 return this == p; | 855 return this == p; |
852 } | 856 } |
853 | 857 |
854 base::Time TestingProfile::GetStartTime() const { | 858 base::Time TestingProfile::GetStartTime() const { |
855 return start_time_; | 859 return start_time_; |
856 } | 860 } |
857 | 861 |
858 base::FilePath TestingProfile::last_selected_directory() { | 862 base::FilePath TestingProfile::last_selected_directory() { |
859 return last_selected_directory_; | 863 return last_selected_directory_; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 path_, | 996 path_, |
993 delegate_, | 997 delegate_, |
994 extension_policy_, | 998 extension_policy_, |
995 pref_service_.Pass(), | 999 pref_service_.Pass(), |
996 incognito_, | 1000 incognito_, |
997 guest_session_, | 1001 guest_session_, |
998 supervised_user_id_, | 1002 supervised_user_id_, |
999 policy_service_.Pass(), | 1003 policy_service_.Pass(), |
1000 testing_factories_)); | 1004 testing_factories_)); |
1001 } | 1005 } |
OLD | NEW |