summaryrefslogtreecommitdiffstats
path: root/chrome/browser/scoped_pref_update.h
blob: d9ca9c7f733bfabc08eee6a8d8e5a3961e4a1718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// A helper class that assists preferences in firing notifications when lists
// are changed.

#ifndef CHROME_BROWSER_SCOPED_PREF_UPDATE_H_
#define CHROME_BROWSER_SCOPED_PREF_UPDATE_H_
#pragma once

#include "chrome/browser/pref_service.h"

class ScopedPrefUpdate {
 public:
  ScopedPrefUpdate(PrefService* service, const wchar_t* path);
  ~ScopedPrefUpdate();

 private:
  PrefService* service_;
  std::wstring path_;
};

#endif