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

Side by Side Diff: chrome/browser/scoped_pref_update.cc

Issue 1549020: Add a scoped notifier for pref dictionaries / lists. (Closed)
Patch Set: Fix props. Created 10 years, 8 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/scoped_pref_update.h ('k') | chrome/browser/session_startup_pref.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/values.h"
6 #include "chrome/browser/pref_service.h"
7 #include "chrome/browser/scoped_pref_update.h"
8
9 ScopedPrefUpdate::ScopedPrefUpdate(PrefService* service, const wchar_t* path)
10 : service_(service),
11 path_(path) {}
12
13 ScopedPrefUpdate::~ScopedPrefUpdate() {
14 service_->FireObservers(path_.c_str());
15 }
OLDNEW
« no previous file with comments | « chrome/browser/scoped_pref_update.h ('k') | chrome/browser/session_startup_pref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698