| 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 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 return base::FilePath(); | 168 return base::FilePath(); |
| 169 } | 169 } |
| 170 | 170 |
| 171 void FakeProfile::set_last_selected_directory(const base::FilePath& path) {} | 171 void FakeProfile::set_last_selected_directory(const base::FilePath& path) {} |
| 172 | 172 |
| 173 #if defined(OS_CHROMEOS) | 173 #if defined(OS_CHROMEOS) |
| 174 void FakeProfile::ChangeAppLocale( | 174 void FakeProfile::ChangeAppLocale( |
| 175 const std::string& locale, AppLocaleChangedVia via) {} | 175 const std::string& locale, AppLocaleChangedVia via) {} |
| 176 void FakeProfile::OnLogin() {} | 176 void FakeProfile::OnLogin() {} |
| 177 void FakeProfile::InitChromeOSPreferences() {} | 177 void FakeProfile::InitChromeOSPreferences() {} |
| 178 bool FakeProfile::IsLoginProfile() { | |
| 179 return false; | |
| 180 } | |
| 181 #endif // defined(OS_CHROMEOS) | 178 #endif // defined(OS_CHROMEOS) |
| 182 | 179 |
| 183 PrefProxyConfigTracker* FakeProfile::GetProxyConfigTracker() { | 180 PrefProxyConfigTracker* FakeProfile::GetProxyConfigTracker() { |
| 184 return NULL; | 181 return NULL; |
| 185 } | 182 } |
| 186 | 183 |
| 187 chrome_browser_net::Predictor* FakeProfile::GetNetworkPredictor() { | 184 chrome_browser_net::Predictor* FakeProfile::GetNetworkPredictor() { |
| 188 return NULL; | 185 return NULL; |
| 189 } | 186 } |
| 190 | 187 |
| 191 void FakeProfile::ClearNetworkingHistorySince(base::Time time, | 188 void FakeProfile::ClearNetworkingHistorySince(base::Time time, |
| 192 const base::Closure& completion) { | 189 const base::Closure& completion) { |
| 193 } | 190 } |
| 194 | 191 |
| 195 GURL FakeProfile::GetHomePage() { | 192 GURL FakeProfile::GetHomePage() { |
| 196 return GURL(); | 193 return GURL(); |
| 197 } | 194 } |
| 198 | 195 |
| 199 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { | 196 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { |
| 200 return false; | 197 return false; |
| 201 } | 198 } |
| 202 | 199 |
| 203 void FakeProfile::SetExitType(ExitType exit_type) { | 200 void FakeProfile::SetExitType(ExitType exit_type) { |
| 204 } | 201 } |
| 205 | 202 |
| 206 Profile::ExitType FakeProfile::GetLastSessionExitType() { | 203 Profile::ExitType FakeProfile::GetLastSessionExitType() { |
| 207 return EXIT_NORMAL; | 204 return EXIT_NORMAL; |
| 208 } | 205 } |
| OLD | NEW |