Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

dummy_pref_store.cc

// 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_;
}


Generated by  Doxygen 1.6.0   Back to index