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

Unified Diff: chrome/browser/prefs/pref_value_map.h

Issue 8139029: Make policy errors available to display in about:policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bad commit Created 9 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
Index: chrome/browser/prefs/pref_value_map.h
diff --git a/chrome/browser/prefs/pref_value_map.h b/chrome/browser/prefs/pref_value_map.h
index f8995ce386fe9af6003cafb44942dc234154a488..2f6453bc0ebcdd2db361f1dcd3d91a3d7e2fb2e2 100644
--- a/chrome/browser/prefs/pref_value_map.h
+++ b/chrome/browser/prefs/pref_value_map.h
@@ -71,6 +71,10 @@ class PrefValueMap {
void GetDifferingKeys(const PrefValueMap* other,
std::vector<std::string>* differing_keys) const;
+ // Copies all entries in |other| to this value map. Overwrites any existing
+ // value if a key already exists in this value map.
+ void MergeFrom(const PrefValueMap* other);
+
private:
typedef std::map<std::string, base::Value*> Map;

Powered by Google App Engine
This is Rietveld 408576698