summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dummy_pref_store.cc
blob: 7b3cd0a9dc942c0450fbd48d6e1c8a6e832d417b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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.

#include "chrome/browser/dummy_pref_store.h"

DummyPrefStore::DummyPrefStore()
    : prefs_(new DictionaryValue()),
      read_only_(true),
      prefs_written_(false) { }

PrefStore::PrefReadError DummyPrefStore::ReadPrefs() {
  prefs_.reset(new DictionaryValue());
  return PrefStore::PREF_READ_ERROR_NONE;
}

bool DummyPrefStore::WritePrefs() {
  prefs_written_ = true;
  return prefs_written_;
}