| 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 } | 11 } |
| 11 | 12 |
| 12 FakeProfile::FakeProfile(const std::string& name, const base::FilePath& path) | 13 FakeProfile::FakeProfile(const std::string& name, const base::FilePath& path) |
| 13 : name_(name), | 14 : name_(name), |
| 14 path_(path) { | 15 path_(path) { |
| 16 BrowserContext::Initialize(this, path_); |
| 15 } | 17 } |
| 16 | 18 |
| 17 std::string FakeProfile::GetProfileUserName() const { | 19 std::string FakeProfile::GetProfileUserName() const { |
| 18 return name_; | 20 return name_; |
| 19 } | 21 } |
| 20 | 22 |
| 21 Profile::ProfileType FakeProfile::GetProfileType() const { | 23 Profile::ProfileType FakeProfile::GetProfileType() const { |
| 22 return REGULAR_PROFILE; | 24 return REGULAR_PROFILE; |
| 23 } | 25 } |
| 24 | 26 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { | 211 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { |
| 210 return false; | 212 return false; |
| 211 } | 213 } |
| 212 | 214 |
| 213 void FakeProfile::SetExitType(ExitType exit_type) { | 215 void FakeProfile::SetExitType(ExitType exit_type) { |
| 214 } | 216 } |
| 215 | 217 |
| 216 Profile::ExitType FakeProfile::GetLastSessionExitType() { | 218 Profile::ExitType FakeProfile::GetLastSessionExitType() { |
| 217 return EXIT_NORMAL; | 219 return EXIT_NORMAL; |
| 218 } | 220 } |
| OLD | NEW |