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 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 } | 835 } |
836 | 836 |
837 bool TestingProfile::IsGuestSession() const { | 837 bool TestingProfile::IsGuestSession() const { |
838 return false; | 838 return false; |
839 } | 839 } |
840 | 840 |
841 Profile::ExitType TestingProfile::GetLastSessionExitType() { | 841 Profile::ExitType TestingProfile::GetLastSessionExitType() { |
842 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED; | 842 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED; |
843 } | 843 } |
844 | 844 |
845 #if defined(OS_CHROMEOS) | |
846 bool TestingProfile::IsLoginProfile() { | |
847 return false; | |
848 } | |
849 #endif | |
850 | |
851 TestingProfile::Builder::Builder() | 845 TestingProfile::Builder::Builder() |
852 : build_called_(false), | 846 : build_called_(false), |
853 delegate_(NULL), | 847 delegate_(NULL), |
854 incognito_(false) { | 848 incognito_(false) { |
855 } | 849 } |
856 | 850 |
857 TestingProfile::Builder::~Builder() { | 851 TestingProfile::Builder::~Builder() { |
858 } | 852 } |
859 | 853 |
860 void TestingProfile::Builder::SetPath(const base::FilePath& path) { | 854 void TestingProfile::Builder::SetPath(const base::FilePath& path) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 | 890 |
897 return scoped_ptr<TestingProfile>(new TestingProfile( | 891 return scoped_ptr<TestingProfile>(new TestingProfile( |
898 path_, | 892 path_, |
899 delegate_, | 893 delegate_, |
900 extension_policy_, | 894 extension_policy_, |
901 pref_service_.Pass(), | 895 pref_service_.Pass(), |
902 incognito_, | 896 incognito_, |
903 managed_user_id_, | 897 managed_user_id_, |
904 testing_factories_)); | 898 testing_factories_)); |
905 } | 899 } |
OLD | NEW |