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 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 } | 773 } |
774 | 774 |
775 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { | 775 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { |
776 return true; | 776 return true; |
777 } | 777 } |
778 | 778 |
779 Profile::ExitType TestingProfile::GetLastSessionExitType() { | 779 Profile::ExitType TestingProfile::GetLastSessionExitType() { |
780 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED; | 780 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED; |
781 } | 781 } |
782 | 782 |
| 783 void TestingProfile::VisitDependencyManager( |
| 784 scoped_ptr<content::BrowserContextDependencyVisitor> visitor) { |
| 785 visitor->Visit(NULL); |
| 786 } |
| 787 |
| 788 graph::DependencyManagerInstance* TestingProfile::GetDependencyManager() { |
| 789 return NULL; |
| 790 } |
| 791 |
783 TestingProfile::Builder::Builder() | 792 TestingProfile::Builder::Builder() |
784 : build_called_(false), | 793 : build_called_(false), |
785 delegate_(NULL) { | 794 delegate_(NULL) { |
786 } | 795 } |
787 | 796 |
788 TestingProfile::Builder::~Builder() { | 797 TestingProfile::Builder::~Builder() { |
789 } | 798 } |
790 | 799 |
791 void TestingProfile::Builder::SetPath(const base::FilePath& path) { | 800 void TestingProfile::Builder::SetPath(const base::FilePath& path) { |
792 path_ = path; | 801 path_ = path; |
(...skipping 15 matching lines...) Expand all Loading... |
808 | 817 |
809 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() { | 818 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() { |
810 DCHECK(!build_called_); | 819 DCHECK(!build_called_); |
811 build_called_ = true; | 820 build_called_ = true; |
812 return scoped_ptr<TestingProfile>(new TestingProfile( | 821 return scoped_ptr<TestingProfile>(new TestingProfile( |
813 path_, | 822 path_, |
814 delegate_, | 823 delegate_, |
815 extension_policy_, | 824 extension_policy_, |
816 pref_service_.Pass())); | 825 pref_service_.Pass())); |
817 } | 826 } |
OLD | NEW |