diff options
author | battre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-25 16:38:31 +0000 |
---|---|---|
committer | battre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-25 16:38:31 +0000 |
commit | 68bf41ae4642cc0b1ad6f9d5c4050acaf3d7d1d5 (patch) | |
tree | 42a4b753dd5db63399fc7a55f021c0bf6adfb1ba /chrome/browser/prefs/scoped_user_pref_update.cc | |
parent | e6eddfdb8f1a9688145e5efba334d484c738a1c6 (diff) | |
download | chromium_src-68bf41ae4642cc0b1ad6f9d5c4050acaf3d7d1d5.zip chromium_src-68bf41ae4642cc0b1ad6f9d5c4050acaf3d7d1d5.tar.gz chromium_src-68bf41ae4642cc0b1ad6f9d5c4050acaf3d7d1d5.tar.bz2 |
Let PrefStore::GetValue return a const Value* instead of Value* and add PersistentPrefStore::GetMutableValue
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6713099
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/prefs/scoped_user_pref_update.cc')
-rw-r--r-- | chrome/browser/prefs/scoped_user_pref_update.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/prefs/scoped_user_pref_update.cc b/chrome/browser/prefs/scoped_user_pref_update.cc index 2c3c995..3ef0029 100644 --- a/chrome/browser/prefs/scoped_user_pref_update.cc +++ b/chrome/browser/prefs/scoped_user_pref_update.cc @@ -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. @@ -13,8 +13,5 @@ ScopedUserPrefUpdate::ScopedUserPrefUpdate( path_(path) {} ScopedUserPrefUpdate::~ScopedUserPrefUpdate() { - // TODO(mnissler, danno): This sends a notification unconditionally, which is - // wrong. We should rather tell the PrefService that the user pref got - // updated. - service_->ReportValueChanged(path_); + service_->ReportUserPrefChanged(path_); } |