summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.h
diff options
context:
space:
mode:
authorrsimha@chromium.org <rsimha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-03 23:27:31 +0000
committerrsimha@chromium.org <rsimha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-03 23:27:31 +0000
commit909a81eaa4568f4b13562dc3f34ac7268b590f09 (patch)
tree958829ea557102634d623123a77f0ae20a7dd6da /chrome/browser/profile.h
parentc09fb1c79c0a3e76dbb6091e4b718fd9bb197395 (diff)
downloadchromium_src-909a81eaa4568f4b13562dc3f34ac7268b590f09.zip
chromium_src-909a81eaa4568f4b13562dc3f34ac7268b590f09.tar.gz
chromium_src-909a81eaa4568f4b13562dc3f34ac7268b590f09.tar.bz2
PyAuto hooks for Sync in TestingAutomationProvider
This patch exposes hooks for sync in TestingAutomationProvider that the chrome pyauto test suite can use. It contains the following changes: - Partial revert of an earlier change to ProfileSyncServiceHarness. Some of its methods were made pure virtual, but this ended up being unnecessary. Also ripped out unnecessary code from LiveSyncTest. - Minor refactor of ProfileSyncServiceHarness to allow for scenarios where the browser is restarted. - A bunch of new methods in TestingAutomationProvider: SignInToSync, GetSyncInfo, AwaitSyncCycleCompletion, EnableSyncForDatatypes and DisableSyncForDatatypes. - A new method in model_type.h/cc called ModelTypeFromString. Required for automation. - New APIs in pyauto.py for sync. - New test suite sync.py with sample tests. BUG=53651, 60970, 56460, 61639 TEST=run pyauto sync tests Review URL: http://codereview.chromium.org/4096004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64988 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r--chrome/browser/profile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h
index fac699d..aac3f02 100644
--- a/chrome/browser/profile.h
+++ b/chrome/browser/profile.h
@@ -379,6 +379,9 @@ class Profile {
// Returns true if this profile has a session service.
virtual bool HasSessionService() const = 0;
+ // Returns true if this profile has a profile sync service.
+ virtual bool HasProfileSyncService() const = 0;
+
// Returns true if the last time this profile was open it was exited cleanly.
virtual bool DidLastSessionExitCleanly() = 0;