blob: c68f5554cad48894a24960fa1dc294345bc44974 [file] [log] [blame]
// Copyright 2013 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 "chromeos/settings/cros_settings_provider.h"
#include "base/command_line.h"
#include "base/strings/string_util.h"
#include "base/values.h"
namespace chromeos {
CrosSettingsProvider::CrosSettingsProvider(
const NotifyObserversCallback& notify_cb)
: notify_cb_(notify_cb) {
}
CrosSettingsProvider::~CrosSettingsProvider() = default;
void CrosSettingsProvider::NotifyObservers(const std::string& path) {
if (!notify_cb_.is_null())
notify_cb_.Run(path);
}
void CrosSettingsProvider::SetNotifyObserversCallback(
const NotifyObserversCallback& notify_cb) {
notify_cb_ = notify_cb;
}
} // namespace chromeos