summaryrefslogtreecommitdiff
path: root/chrome/browser/sync/profile_sync_service.h
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2014-08-28 12:05:23 +0100
committerTorne (Richard Coles) <torne@google.com>2014-08-28 12:05:23 +0100
commit03b57e008b61dfcb1fbad3aea950ae0e001748b0 (patch)
tree9a740c1a5fbe659ec83484b67cbc679332f5a408 /chrome/browser/sync/profile_sync_service.h
parentca7d0c81aa30d24514c34c963f43cd24da34a2bf (diff)
downloadchromium_org-03b57e008b61dfcb1fbad3aea950ae0e001748b0.tar.gz
Merge from Chromium at DEPS revision 291560
This commit was generated by merge_to_master.py. Change-Id: Ic58269055810d51286b4109e59b90b6856887a30
Diffstat (limited to 'chrome/browser/sync/profile_sync_service.h')
-rw-r--r--chrome/browser/sync/profile_sync_service.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index 4c99c4d48b..ed483a9cab 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -20,6 +20,7 @@
#include "base/strings/string16.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
+#include "chrome/browser/browsing_data/browsing_data_remover.h"
#include "chrome/browser/sync/backend_unrecoverable_error_handler.h"
#include "chrome/browser/sync/backup_rollback_controller.h"
#include "chrome/browser/sync/glue/local_device_info_provider.h"
@@ -775,8 +776,12 @@ class ProfileSyncService : public ProfileSyncServiceBase,
return backend_mode_;
}
- void SetClearingBrowseringDataForTesting(
- base::Callback<void(Profile*, base::Time, base::Time)> c);
+ // Helpers for testing rollback.
+ void SetBrowsingDataRemoverObserverForTesting(
+ BrowsingDataRemover::Observer* observer);
+ void SetClearingBrowseringDataForTesting(base::Callback<
+ void(BrowsingDataRemover::Observer*, Profile*, base::Time, base::Time)>
+ c);
// Return the base URL of the Sync Server.
static GURL GetSyncServiceURL(const base::CommandLine& command_line);
@@ -1149,12 +1154,16 @@ class ProfileSyncService : public ProfileSyncServiceBase,
base::Time backup_start_time_;
- base::Callback<void(Profile*, base::Time, base::Time)> clear_browsing_data_;
+ base::Callback<
+ void(BrowsingDataRemover::Observer*, Profile*, base::Time, base::Time)>
+ clear_browsing_data_;
// Last time when pre-sync data was saved. NULL pointer means backup data
// state is unknown. If time value is null, backup data doesn't exist.
scoped_ptr<base::Time> last_backup_time_;
+ BrowsingDataRemover::Observer* browsing_data_remover_observer_;
+
DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
};