blob: 3f74760c84380de638e0d8f4feec36e0070bbcca [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 {
const char DefaultProfile::kDefaultId[] = "default";
DefaultProfile::DefaultProfile(ControlInterface *control_interface,
GLib *glib,
Manager *manager,
const Manager::Properties &manager_props)
: Profile(control_interface, glib, manager, Identifier(kDefaultId), true) {
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