| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 base::Time FakeProfile::GetStartTime() const { | 161 base::Time FakeProfile::GetStartTime() const { |
| 162 return base::Time(); | 162 return base::Time(); |
| 163 } | 163 } |
| 164 | 164 |
| 165 base::FilePath FakeProfile::last_selected_directory() { | 165 base::FilePath FakeProfile::last_selected_directory() { |
| 166 return base::FilePath(); | 166 return base::FilePath(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 void FakeProfile::set_last_selected_directory(const base::FilePath& path) {} | 169 void FakeProfile::set_last_selected_directory(const base::FilePath& path) {} |
| 170 | 170 |
| 171 #if defined(OS_CHROMEOS) | |
| 172 void FakeProfile::ChangeAppLocale( | 171 void FakeProfile::ChangeAppLocale( |
| 173 const std::string& locale, AppLocaleChangedVia via) {} | 172 const std::string& locale, AppLocaleChangedVia via) {} |
| 174 void FakeProfile::OnLogin() {} | 173 void FakeProfile::OnLogin() {} |
| 175 void FakeProfile::InitChromeOSPreferences() {} | 174 void FakeProfile::InitChromeOSPreferences() {} |
| 176 #endif // defined(OS_CHROMEOS) | |
| 177 | 175 |
| 178 PrefProxyConfigTracker* FakeProfile::GetProxyConfigTracker() { | 176 PrefProxyConfigTracker* FakeProfile::GetProxyConfigTracker() { |
| 179 return nullptr; | 177 return nullptr; |
| 180 } | 178 } |
| 181 | 179 |
| 182 chrome_browser_net::Predictor* FakeProfile::GetNetworkPredictor() { | 180 chrome_browser_net::Predictor* FakeProfile::GetNetworkPredictor() { |
| 183 return nullptr; | 181 return nullptr; |
| 184 } | 182 } |
| 185 | 183 |
| 186 DevToolsNetworkControllerHandle* | 184 DevToolsNetworkControllerHandle* |
| (...skipping 13 matching lines...) Expand all Loading... |
| 200 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { | 198 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { |
| 201 return false; | 199 return false; |
| 202 } | 200 } |
| 203 | 201 |
| 204 void FakeProfile::SetExitType(ExitType exit_type) { | 202 void FakeProfile::SetExitType(ExitType exit_type) { |
| 205 } | 203 } |
| 206 | 204 |
| 207 Profile::ExitType FakeProfile::GetLastSessionExitType() { | 205 Profile::ExitType FakeProfile::GetLastSessionExitType() { |
| 208 return EXIT_NORMAL; | 206 return EXIT_NORMAL; |
| 209 } | 207 } |
| OLD | NEW |