| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 } | 303 } |
| 304 bool IsSameProfile(Profile* p) override; | 304 bool IsSameProfile(Profile* p) override; |
| 305 base::Time GetStartTime() const override; | 305 base::Time GetStartTime() const override; |
| 306 base::FilePath last_selected_directory() override; | 306 base::FilePath last_selected_directory() override; |
| 307 void set_last_selected_directory(const base::FilePath& path) override; | 307 void set_last_selected_directory(const base::FilePath& path) override; |
| 308 bool WasCreatedByVersionOrLater(const std::string& version) override; | 308 bool WasCreatedByVersionOrLater(const std::string& version) override; |
| 309 bool IsGuestSession() const override; | 309 bool IsGuestSession() const override; |
| 310 void SetExitType(ExitType exit_type) override {} | 310 void SetExitType(ExitType exit_type) override {} |
| 311 ExitType GetLastSessionExitType() override; | 311 ExitType GetLastSessionExitType() override; |
| 312 #if defined(OS_CHROMEOS) | 312 #if defined(OS_CHROMEOS) |
| 313 virtual void ChangeAppLocale(const std::string&, | 313 void ChangeAppLocale(const std::string&, AppLocaleChangedVia) override {} |
| 314 AppLocaleChangedVia) override { | 314 void OnLogin() override {} |
| 315 } | 315 void InitChromeOSPreferences() override {} |
| 316 virtual void OnLogin() override { | |
| 317 } | |
| 318 virtual void InitChromeOSPreferences() override { | |
| 319 } | |
| 320 #endif // defined(OS_CHROMEOS) | 316 #endif // defined(OS_CHROMEOS) |
| 321 | 317 |
| 322 PrefProxyConfigTracker* GetProxyConfigTracker() override; | 318 PrefProxyConfigTracker* GetProxyConfigTracker() override; |
| 323 | 319 |
| 324 // Schedules a task on the history backend and runs a nested loop until the | 320 // Schedules a task on the history backend and runs a nested loop until the |
| 325 // task is processed. This has the effect of blocking the caller until the | 321 // task is processed. This has the effect of blocking the caller until the |
| 326 // history service processes all pending requests. | 322 // history service processes all pending requests. |
| 327 void BlockUntilHistoryProcessesPendingRequests(); | 323 void BlockUntilHistoryProcessesPendingRequests(); |
| 328 | 324 |
| 329 chrome_browser_net::Predictor* GetNetworkPredictor() override; | 325 chrome_browser_net::Predictor* GetNetworkPredictor() override; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 413 |
| 418 // Weak pointer to a delegate for indicating that a profile was created. | 414 // Weak pointer to a delegate for indicating that a profile was created. |
| 419 Delegate* delegate_; | 415 Delegate* delegate_; |
| 420 | 416 |
| 421 std::string profile_name_; | 417 std::string profile_name_; |
| 422 | 418 |
| 423 scoped_ptr<policy::PolicyService> policy_service_; | 419 scoped_ptr<policy::PolicyService> policy_service_; |
| 424 }; | 420 }; |
| 425 | 421 |
| 426 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 422 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |