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

Side by Side Diff: chrome/browser/prefs/scoped_pref_update.h

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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
OLDNEW
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_PREFS_SCOPED_PREF_UPDATE_H_
9 #define CHROME_BROWSER_SCOPED_PREF_UPDATE_H_ 9 #define CHROME_BROWSER_PREFS_SCOPED_PREF_UPDATE_H_
10 #pragma once 10 #pragma once
11 11
12 #include "chrome/browser/pref_service.h" 12 #include "chrome/browser/prefs/pref_service.h"
13 13
14 class ScopedPrefUpdate { 14 class ScopedPrefUpdate {
15 public: 15 public:
16 ScopedPrefUpdate(PrefService* service, const char* path); 16 ScopedPrefUpdate(PrefService* service, const char* path);
17 // TODO(viettrungluu): deprecate: 17 // TODO(viettrungluu): deprecate:
18 ScopedPrefUpdate(PrefService* service, const wchar_t* path); 18 ScopedPrefUpdate(PrefService* service, const wchar_t* path);
19 ~ScopedPrefUpdate(); 19 ~ScopedPrefUpdate();
20 20
21 private: 21 private:
22 PrefService* service_; 22 PrefService* service_;
23 std::string path_; 23 std::string path_;
24 }; 24 };
25 25
26 #endif // CHROME_BROWSER_SCOPED_PREF_UPDATE_H_ 26 #endif // CHROME_BROWSER_PREFS_SCOPED_PREF_UPDATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698