OLD | NEW |
(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 // A helper class that assists preferences in firing notifications when lists |
| 6 // are changed. |
| 7 |
| 8 #ifndef CHROME_BROWSER_SCOPED_PREF_UPDATE_H_ |
| 9 #define CHROME_BROWSER_SCOPED_PREF_UPDATE_H_ |
| 10 |
| 11 #include "chrome/browser/pref_service.h" |
| 12 |
| 13 class ScopedPrefUpdate { |
| 14 public: |
| 15 ScopedPrefUpdate(PrefService* service, const wchar_t* path); |
| 16 ~ScopedPrefUpdate(); |
| 17 |
| 18 private: |
| 19 PrefService* service_; |
| 20 std::wstring path_; |
| 21 }; |
| 22 |
| 23 #endif |
OLD | NEW |