summaryrefslogtreecommitdiffstats
path: root/base/values.cc
diff options
context:
space:
mode:
authorzork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-12 05:41:39 +0000
committerzork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-12 05:41:39 +0000
commitac579882736d975f12036fa718f4080aa41e5e14 (patch)
tree36900f1103b8a1a594cfef82f19820293ec5cc7d /base/values.cc
parenta6413746c7dc93abcac5573dad08aa6a07826e6e (diff)
downloadchromium_src-ac579882736d975f12036fa718f4080aa41e5e14.zip
chromium_src-ac579882736d975f12036fa718f4080aa41e5e14.tar.gz
chromium_src-ac579882736d975f12036fa718f4080aa41e5e14.tar.bz2
Revert 44234 - Add notifications to allow desktop notification permissions to be synced.
Fix a bug where sites can be added to allow and deny lists multiple times. BUG=none TEST=Open two browsers with separate profiles. Request permission for notifications on a site on one. Check that the permissions are the same on the other browser. Review URL: http://codereview.chromium.org/1578023 TBR=zork@chromium.org Review URL: http://codereview.chromium.org/1607012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44235 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values.cc')
-rw-r--r--base/values.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/base/values.cc b/base/values.cc
index feff299..f214ead 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -832,16 +832,6 @@ void ListValue::Append(Value* in_value) {
list_.push_back(in_value);
}
-bool ListValue::AppendIfNotPresent(Value* in_value) {
- DCHECK(in_value);
- for (ValueVector::iterator i(list_.begin()); i != list_.end(); ++i) {
- if ((*i)->Equals(in_value))
- return false;
- }
- list_.push_back(in_value);
- return true;
-}
-
bool ListValue::Insert(size_t index, Value* in_value) {
DCHECK(in_value);
if (index > list_.size())