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

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

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 #include "base/utf_string_conversions.h" // TODO(viettrungluu): remove 5 #include "base/utf_string_conversions.h" // TODO(viettrungluu): remove
6 #include "chrome/browser/pref_service.h" 6 #include "chrome/browser/prefs/pref_service.h"
7 #include "chrome/browser/scoped_pref_update.h" 7 #include "chrome/browser/prefs/scoped_pref_update.h"
8 8
9 ScopedPrefUpdate::ScopedPrefUpdate(PrefService* service, const char* path) 9 ScopedPrefUpdate::ScopedPrefUpdate(PrefService* service, const char* path)
10 : service_(service), 10 : service_(service),
11 path_(path) {} 11 path_(path) {}
12 12
13 // TODO(viettrungluu): deprecate and remove #include 13 // TODO(viettrungluu): deprecate and remove #include
14 ScopedPrefUpdate::ScopedPrefUpdate(PrefService* service, const wchar_t* path) 14 ScopedPrefUpdate::ScopedPrefUpdate(PrefService* service, const wchar_t* path)
15 : service_(service), 15 : service_(service),
16 path_(WideToUTF8(path)) {} 16 path_(WideToUTF8(path)) {}
17 17
18 ScopedPrefUpdate::~ScopedPrefUpdate() { 18 ScopedPrefUpdate::~ScopedPrefUpdate() {
19 service_->pref_notifier()->FireObservers(path_.c_str()); 19 service_->pref_notifier()->FireObservers(path_.c_str());
20 } 20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698