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

Unified Diff: chrome/browser/prefs/pref_hash_store_impl.cc

Issue 334433002: Update the super MAC after performing MAC validation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: chrome/browser/prefs/pref_hash_store_impl.cc
diff --git a/chrome/browser/prefs/pref_hash_store_impl.cc b/chrome/browser/prefs/pref_hash_store_impl.cc
index a82d449f4e40ff4618ca6c998a3c563ffafd56d5..3702bb814c2c9269bf9a50eebf33f5ccb7f11250 100644
--- a/chrome/browser/prefs/pref_hash_store_impl.cc
+++ b/chrome/browser/prefs/pref_hash_store_impl.cc
@@ -40,6 +40,7 @@ class PrefHashStoreImpl::PrefHashStoreTransactionImpl
const base::Value* value) const OVERRIDE;
virtual void StoreHash(const std::string& path,
const base::Value* value) OVERRIDE;
+ virtual bool StampSuperMac() OVERRIDE;
virtual ValueState CheckSplitValue(
const std::string& path,
const base::DictionaryValue* initial_split_value,
@@ -148,6 +149,13 @@ void PrefHashStoreImpl::PrefHashStoreTransactionImpl::StoreHash(
has_changed_ = true;
}
+bool PrefHashStoreImpl::PrefHashStoreTransactionImpl::StampSuperMac() {
+ if (outer_->initial_hashes_dictionary_trusted_)
+ return false;
+ has_changed_ = true;
+ return true;
+}
+
PrefHashStoreTransaction::ValueState
PrefHashStoreImpl::PrefHashStoreTransactionImpl::CheckSplitValue(
const std::string& path,

Powered by Google App Engine
This is Rietveld 408576698