Chris Masone | 88cbd5f | 2011-07-03 14:30:04 -0700 | [diff] [blame] | 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 | |
| 13 | namespace shill { |
Chris Masone | 7df0c67 | 2011-07-15 10:24:54 -0700 | [diff] [blame] | 14 | const char DefaultProfile::kDefaultId[] = "default"; |
Chris Masone | 88cbd5f | 2011-07-03 14:30:04 -0700 | [diff] [blame] | 15 | |
| 16 | DefaultProfile::DefaultProfile(ControlInterface *control_interface, |
Darin Petkov | a476682 | 2011-07-07 10:42:22 -0700 | [diff] [blame] | 17 | GLib *glib, |
Chris Masone | 6791a43 | 2011-07-12 13:23:19 -0700 | [diff] [blame] | 18 | Manager *manager, |
Chris Masone | 88cbd5f | 2011-07-03 14:30:04 -0700 | [diff] [blame] | 19 | const Manager::Properties &manager_props) |
Chris Masone | 7df0c67 | 2011-07-15 10:24:54 -0700 | [diff] [blame] | 20 | : Profile(control_interface, glib, manager, Identifier(kDefaultId), true) { |
Chris Masone | 88cbd5f | 2011-07-03 14:30:04 -0700 | [diff] [blame] | 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 | |
| 31 | DefaultProfile::~DefaultProfile() {} |
| 32 | |
| 33 | } // namespace shill |