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

Unified Diff: components/sync_driver/sync_frontend.h

Issue 1177853002: [Sync] Add ability to save/restore Nigori to SyncEncryptionHandlerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename in backend as well Created 5 years, 6 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') | sync/internal_api/debug_info_event_listener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/sync_frontend.h
diff --git a/components/sync_driver/sync_frontend.h b/components/sync_driver/sync_frontend.h
index 774a55366256619d43a930c3b78cd3dcffeadee9..17db8f54c17cb99c9098356918cb8be3bf9f93ad 100644
--- a/components/sync_driver/sync_frontend.h
+++ b/components/sync_driver/sync_frontend.h
@@ -134,6 +134,14 @@ class SyncFrontend {
// Called when the sync cycle returns there is an user actionable error.
virtual void OnActionableError(const syncer::SyncProtocolError& error) = 0;
+
+ // Called when the user of this device enables passphrase encryption.
+ //
+ // |nigori_state| contains the new (post custom passphrase) encryption keys
+ // and can be used to restore SyncEncryptionHandler's state across sync
+ // backend instances. See also SyncEncryptionHandlerImpl::RestoreNigori.
+ virtual void OnLocalSetPassphraseEncryption(
+ const syncer::SyncEncryptionHandler::NigoriState& nigori_state) = 0;
};
} // namespace sync_driver
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | sync/internal_api/debug_info_event_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698