Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: chrome/browser/sync/profile_sync_service_harness.h

Issue 10197004: [Sync] Convert SyncSessionSnapshot to a copy-able class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_harness.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service_harness.h
diff --git a/chrome/browser/sync/profile_sync_service_harness.h b/chrome/browser/sync/profile_sync_service_harness.h
index 48de1d4b5d79a1db0596a22ecfc0d98cc24d1106..7ae069c2b81701571379848360d1bf9af25e1250 100644
--- a/chrome/browser/sync/profile_sync_service_harness.h
+++ b/chrome/browser/sync/profile_sync_service_harness.h
@@ -20,9 +20,9 @@
class Profile;
namespace browser_sync {
- namespace sessions {
- struct SyncSessionSnapshot;
- }
+namespace sessions {
+class SyncSessionSnapshot;
+}
}
// An instance of this class is basically our notion of a "sync client" for
@@ -161,8 +161,7 @@ class ProfileSyncServiceHarness
bool DisableSyncForAllDatatypes();
// Returns a snapshot of the current sync session.
- const browser_sync::sessions::SyncSessionSnapshot*
- GetLastSessionSnapshot() const;
+ browser_sync::sessions::SyncSessionSnapshot GetLastSessionSnapshot() const;
// Encrypt the datatype |type|. This method will block while the sync backend
// host performs the encryption or a timeout is reached.
@@ -290,7 +289,8 @@ class ProfileSyncServiceHarness
const std::string& reason);
// A helper for implementing IsDataSynced() and IsFullySynced().
- bool IsDataSyncedImpl(const browser_sync::sessions::SyncSessionSnapshot*);
+ bool IsDataSyncedImpl(
+ const browser_sync::sessions::SyncSessionSnapshot& snapshot);
// Returns true if the sync client has no unsynced items.
bool IsDataSynced();
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698