OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "chrome/browser/ui/app_list/test/fake_profile.h" | 6 #include "chrome/browser/ui/app_list/test/fake_profile.h" |
7 | 7 |
8 FakeProfile::FakeProfile(const std::string& name) | 8 FakeProfile::FakeProfile(const std::string& name) |
9 : name_(name) { | 9 : name_(name) { |
10 BrowserContext::Initialize(this, base::FilePath()); | 10 BrowserContext::Initialize(this, base::FilePath()); |
(...skipping 10 matching lines...) Expand all Loading... |
21 } | 21 } |
22 | 22 |
23 Profile::ProfileType FakeProfile::GetProfileType() const { | 23 Profile::ProfileType FakeProfile::GetProfileType() const { |
24 return REGULAR_PROFILE; | 24 return REGULAR_PROFILE; |
25 } | 25 } |
26 | 26 |
27 base::FilePath FakeProfile::GetPath() const { | 27 base::FilePath FakeProfile::GetPath() const { |
28 return path_; | 28 return path_; |
29 } | 29 } |
30 | 30 |
31 scoped_ptr<content::ZoomLevelDelegate> FakeProfile::CreateZoomLevelDelegate( | 31 std::unique_ptr<content::ZoomLevelDelegate> |
32 const base::FilePath& partition_path) { | 32 FakeProfile::CreateZoomLevelDelegate(const base::FilePath& partition_path) { |
33 return nullptr; | 33 return nullptr; |
34 } | 34 } |
35 | 35 |
36 bool FakeProfile::IsOffTheRecord() const { | 36 bool FakeProfile::IsOffTheRecord() const { |
37 return false; | 37 return false; |
38 } | 38 } |
39 | 39 |
40 content::DownloadManagerDelegate* FakeProfile::GetDownloadManagerDelegate() { | 40 content::DownloadManagerDelegate* FakeProfile::GetDownloadManagerDelegate() { |
41 return nullptr; | 41 return nullptr; |
42 } | 42 } |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { | 206 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { |
207 return false; | 207 return false; |
208 } | 208 } |
209 | 209 |
210 void FakeProfile::SetExitType(ExitType exit_type) { | 210 void FakeProfile::SetExitType(ExitType exit_type) { |
211 } | 211 } |
212 | 212 |
213 Profile::ExitType FakeProfile::GetLastSessionExitType() { | 213 Profile::ExitType FakeProfile::GetLastSessionExitType() { |
214 return EXIT_NORMAL; | 214 return EXIT_NORMAL; |
215 } | 215 } |
OLD | NEW |