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

Unified Diff: components/sync/test/engine/mock_connection_manager.h

Issue 2494873003: [Sync] Allow sync start without sign-in if the local sync backend is on. (Closed)
Patch Set: Merge pref changes from https://codereview.chromium.org/2528163002/. Created 4 years 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
Index: components/sync/test/engine/mock_connection_manager.h
diff --git a/components/sync/test/engine/mock_connection_manager.h b/components/sync/test/engine/mock_connection_manager.h
index 37e42bc69f13cd3ba3793b6c6375d409efe0fc0e..46fc150cd7e3e1792e39c0e3071da3b9cc97eac5 100644
--- a/components/sync/test/engine/mock_connection_manager.h
+++ b/components/sync/test/engine/mock_connection_manager.h
@@ -272,6 +272,8 @@ class MockConnectionManager : public ServerConnectionManager {
// Adds a new progress marker to the last update.
sync_pb::DataTypeProgressMarker* AddUpdateProgressMarker();
+ void ResetAuthToken() { auth_token_.clear(); }
+
private:
sync_pb::SyncEntity* AddUpdateFull(syncable::Id id,
syncable::Id parentid,

Powered by Google App Engine
This is Rietveld 408576698