blob: 1ba8b2138f3f580b979d7d42b9dacb7ddf9f26b1 [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.
#ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_OWNER_FLAGS_STORAGE_H_
#define CHROME_BROWSER_CHROMEOS_SETTINGS_OWNER_FLAGS_STORAGE_H_
#include "base/compiler_specific.h"
#include "chrome/browser/pref_service_flags_storage.h"
namespace chromeos {
class CrosSettings;
namespace about_flags {
// Implements the FlagsStorage interface for the owner flags. It inherits from
// PrefServiceFlagsStorage but extends it with storing the flags in the signed
// settings as well which effectively applies them to the login session as well.
class OwnerFlagsStorage : public ::about_flags::PrefServiceFlagsStorage {
public:
OwnerFlagsStorage(PrefService *prefs, CrosSettings *cros_settings);
virtual ~OwnerFlagsStorage();
virtual bool SetFlags(const std::set<std::string>& flags) OVERRIDE;
private:
CrosSettings* cros_settings_;
};
} // namespace about_flags
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_SETTINGS_OWNER_FLAGS_STORAGE_H_