Index: chrome/browser/prefs/pref_member.h |
diff --git a/chrome/browser/prefs/pref_member.h b/chrome/browser/prefs/pref_member.h |
index 082ec6e4df2525c9cfdb528570e790938b83fe08..02fe8bbd4ea9a561efb738c661f902794d21a7f0 100644 |
--- a/chrome/browser/prefs/pref_member.h |
+++ b/chrome/browser/prefs/pref_member.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
// |
@@ -140,6 +140,11 @@ class PrefMember : public subtle::PrefMemberBase { |
} |
} |
+ // Returns the pref name. |
+ const std::string& GetPrefName() const { |
+ return pref_name(); |
+ } |
+ |
protected: |
// This methods is used to do the actual sync with pref of the specified type. |
virtual void UpdatePref(const ValueType& value) = 0; |