Chromium Code Reviews| 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 "chrome/browser/ui/app_list/test/fake_profile.h" | 5 #include "chrome/browser/ui/app_list/test/fake_profile.h" |
| 6 | 6 |
| 7 FakeProfile::FakeProfile(const std::string& name) | 7 FakeProfile::FakeProfile(const std::string& name) |
| 8 : name_(name) { | 8 : name_(name) { |
| 9 } | 9 } |
| 10 | 10 |
| 11 FakeProfile::FakeProfile(const std::string& name, const base::FilePath& path) | 11 FakeProfile::FakeProfile(const std::string& name, const base::FilePath& path) |
| 12 : name_(name), | 12 : name_(name), |
| 13 path_(path) { | 13 path_(path) { |
| 14 } | 14 } |
| 15 | 15 |
| 16 std::string FakeProfile::GetProfileName() { | 16 std::string FakeProfile::GetProfileName() { |
| 17 return name_; | 17 return name_; |
| 18 } | 18 } |
| 19 | 19 |
| 20 Profile::ProfileType FakeProfile::GetProfileType() const { | 20 Profile::ProfileType FakeProfile::GetProfileType() const { |
| 21 return REGULAR_PROFILE; | 21 return REGULAR_PROFILE; |
| 22 } | 22 } |
| 23 | 23 |
| 24 base::FilePath FakeProfile::GetPath() const { | 24 base::FilePath FakeProfile::GetPath() const { |
| 25 return path_; | 25 return path_; |
| 26 } | 26 } |
| 27 | 27 |
| 28 scoped_ptr<content::ZoomLevelDelegate> FakeProfile::CreateZoomLevelDelegate( | |
| 29 const base::FilePath& partition_path) { | |
| 30 return scoped_ptr<content::ZoomLevelDelegate>(); | |
|
sky
2014/11/11 20:21:56
return nullptr (see https://groups.google.com/a/ch
wjmaclean
2014/11/11 20:59:08
Done. (thanks for the link to the discussion, much
| |
| 31 } | |
| 32 | |
| 28 bool FakeProfile::IsOffTheRecord() const { | 33 bool FakeProfile::IsOffTheRecord() const { |
| 29 return false; | 34 return false; |
| 30 } | 35 } |
| 31 | 36 |
| 32 content::DownloadManagerDelegate* | 37 content::DownloadManagerDelegate* |
| 33 FakeProfile::GetDownloadManagerDelegate() { | 38 FakeProfile::GetDownloadManagerDelegate() { |
| 34 return NULL; | 39 return NULL; |
| 35 } | 40 } |
| 36 | 41 |
| 37 net::URLRequestContextGetter* FakeProfile::GetRequestContextForRenderProcess( | 42 net::URLRequestContextGetter* FakeProfile::GetRequestContextForRenderProcess( |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 195 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { | 200 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { |
| 196 return false; | 201 return false; |
| 197 } | 202 } |
| 198 | 203 |
| 199 void FakeProfile::SetExitType(ExitType exit_type) { | 204 void FakeProfile::SetExitType(ExitType exit_type) { |
| 200 } | 205 } |
| 201 | 206 |
| 202 Profile::ExitType FakeProfile::GetLastSessionExitType() { | 207 Profile::ExitType FakeProfile::GetLastSessionExitType() { |
| 203 return EXIT_NORMAL; | 208 return EXIT_NORMAL; |
| 204 } | 209 } |
| OLD | NEW |