blob: 78929b4325e0faad83f3bdc65135e500e633300d [file] [log] [blame]
// Copyright (c) 2011 The Chromium OS 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 "shill/default_profile.h"
#include <chromeos/dbus/service_constants.h>
#include "shill/adaptor_interfaces.h"
#include "shill/control_interface.h"
#include "shill/manager.h"
namespace shill {
DefaultProfile::DefaultProfile(ControlInterface *control_interface,
GLib *glib,
Manager *manager,
const Manager::Properties &manager_props)
: Profile(control_interface, glib, manager) {
store_.RegisterConstString(flimflam::kCheckPortalListProperty,
&manager_props.check_portal_list);
store_.RegisterConstString(flimflam::kCountryProperty,
&manager_props.country);
store_.RegisterConstBool(flimflam::kOfflineModeProperty,
&manager_props.offline_mode);
store_.RegisterConstString(flimflam::kPortalURLProperty,
&manager_props.portal_url);
}
DefaultProfile::~DefaultProfile() {}
} // namespace shill