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

Unified Diff: components/sync/base/sync_prefs.h

Issue 2395533003: [Sync] Move some things from driver to base. (Closed)
Patch Set: Rebase. Created 4 years, 2 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 | « components/sync/base/report_unrecoverable_error.cc ('k') | components/sync/base/sync_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/base/sync_prefs.h
diff --git a/components/sync/driver/sync_prefs.h b/components/sync/base/sync_prefs.h
similarity index 93%
rename from components/sync/driver/sync_prefs.h
rename to components/sync/base/sync_prefs.h
index 4632586fab0e8bb2a00b01064ce33f0a1a2a2e3e..a6572c2db79267b88a67c941c1ff7fa1b7d0ae0a 100644
--- a/components/sync/driver/sync_prefs.h
+++ b/components/sync/base/sync_prefs.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_SYNC_DRIVER_SYNC_PREFS_H_
-#define COMPONENTS_SYNC_DRIVER_SYNC_PREFS_H_
+#ifndef COMPONENTS_SYNC_BASE_SYNC_PREFS_H_
+#define COMPONENTS_SYNC_BASE_SYNC_PREFS_H_
#include <stdint.h>
@@ -20,7 +20,7 @@
#include "build/build_config.h"
#include "components/prefs/pref_member.h"
#include "components/sync/base/model_type.h"
-#include "components/sync/core/sync_encryption_handler.h"
+#include "components/sync/protocol/sync.pb.h"
class PrefService;
class ProfileIOData;
@@ -174,12 +174,12 @@ class SyncPrefs : NON_EXPORTED_BASE(public base::NonThreadSafe),
void SetPassphraseEncryptionTransitionInProgress(bool value);
bool GetPassphraseEncryptionTransitionInProgress() const;
- // Get/set for saved Nigori state that needs to be passed to backend
+ // Get/set for saved Nigori specifics that must be passed to backend
// initialization after transition.
- void SetSavedNigoriStateForPassphraseEncryptionTransition(
- const SyncEncryptionHandler::NigoriState& nigori_state);
- std::unique_ptr<SyncEncryptionHandler::NigoriState>
- GetSavedNigoriStateForPassphraseEncryptionTransition() const;
+ void SetNigoriSpecificsForPassphraseTransition(
+ const sync_pb::NigoriSpecifics& nigori_specifics);
+ void GetNigoriSpecificsForPassphraseTransition(
+ sync_pb::NigoriSpecifics* nigori_specifics) const;
private:
void RegisterPrefGroups();
@@ -222,4 +222,4 @@ class SyncPrefs : NON_EXPORTED_BASE(public base::NonThreadSafe),
} // namespace syncer
-#endif // COMPONENTS_SYNC_DRIVER_SYNC_PREFS_H_
+#endif // COMPONENTS_SYNC_BASE_SYNC_PREFS_H_
« no previous file with comments | « components/sync/base/report_unrecoverable_error.cc ('k') | components/sync/base/sync_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698