default_profile.cc revision 7156c923c9a9d2240ea9c62045337ac8c8f89e57
1// Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "shill/default_profile.h" 6 7#include <chromeos/dbus/service_constants.h> 8 9#include "shill/adaptor_interfaces.h" 10#include "shill/control_interface.h" 11#include "shill/manager.h" 12 13namespace shill { 14const char DefaultProfile::kDefaultId[] = "default"; 15 16DefaultProfile::DefaultProfile(ControlInterface *control_interface, 17 GLib *glib, 18 Manager *manager, 19 const Manager::Properties &manager_props) 20 : Profile(control_interface, glib, manager, Identifier(kDefaultId), true) { 21 store_.RegisterConstString(flimflam::kCheckPortalListProperty, 22 &manager_props.check_portal_list); 23 store_.RegisterConstString(flimflam::kCountryProperty, 24 &manager_props.country); 25 store_.RegisterConstBool(flimflam::kOfflineModeProperty, 26 &manager_props.offline_mode); 27 store_.RegisterConstString(flimflam::kPortalURLProperty, 28 &manager_props.portal_url); 29} 30 31DefaultProfile::~DefaultProfile() {} 32 33} // namespace shill 34