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

Unified Diff: chrome/browser/protector/protected_prefs_watcher.h

Issue 10065016: [protector] Refactoring of --no-protector code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 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
Index: chrome/browser/protector/protected_prefs_watcher.h
diff --git a/chrome/browser/protector/protected_prefs_watcher.h b/chrome/browser/protector/protected_prefs_watcher.h
index e020170d73a71d908a8f02632fc369ec1bef63a1..979ca44c066d37e60bcda04130061b613442ca6c 100644
--- a/chrome/browser/protector/protected_prefs_watcher.h
+++ b/chrome/browser/protector/protected_prefs_watcher.h
@@ -42,8 +42,9 @@ class ProtectedPrefsWatcher : public content::NotificationObserver {
// instance is owned by the PrefService.
const base::Value* GetBackupForPref(const std::string& path) const;
- // Updates the backup signature.
- void UpdateBackupSignature();
+ // Forces a valid backup, matching actual preferences (overwriting any
+ // previous data). Should only be when protector service is disabled.
+ void ForceUpdateBackup();
// True if the backup was valid at the profile load time.
bool is_backup_valid() { return is_backup_valid_; }
@@ -84,6 +85,9 @@ class ProtectedPrefsWatcher : public content::NotificationObserver {
// Returns |true| if backup signature is valid.
bool IsSignatureValid() const;
+ // Updates the backup signature.
+ void UpdateBackupSignature();
+
// Returns data to be signed as string.
std::string GetSignatureData(PrefService* prefs) const;
« no previous file with comments | « chrome/browser/protector/prefs_backup_invalid_change.cc ('k') | chrome/browser/protector/protected_prefs_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698