| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // A helper class that assists preferences in firing notifications when lists | 5 // A helper class that assists preferences in firing notifications when lists |
| 6 // are changed. | 6 // are changed. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_SCOPED_PREF_UPDATE_H_ | 8 #ifndef CHROME_BROWSER_SCOPED_PREF_UPDATE_H_ |
| 9 #define CHROME_BROWSER_SCOPED_PREF_UPDATE_H_ | 9 #define CHROME_BROWSER_SCOPED_PREF_UPDATE_H_ |
| 10 #pragma once | 10 #pragma once |
| 11 | 11 |
| 12 #include "chrome/browser/pref_service.h" | 12 #include "chrome/browser/pref_service.h" |
| 13 | 13 |
| 14 class ScopedPrefUpdate { | 14 class ScopedPrefUpdate { |
| 15 public: | 15 public: |
| 16 ScopedPrefUpdate(PrefService* service, const wchar_t* path); | 16 ScopedPrefUpdate(PrefService* service, const wchar_t* path); |
| 17 ~ScopedPrefUpdate(); | 17 ~ScopedPrefUpdate(); |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 PrefService* service_; | 20 PrefService* service_; |
| 21 std::wstring path_; | 21 std::wstring path_; |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 #endif | 24 #endif // CHROME_BROWSER_SCOPED_PREF_UPDATE_H_ |
| OLD | NEW |