summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/cros/network_library_impl_stub.cc
diff options
context:
space:
mode:
authornkostylev@chromium.org <nkostylev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-25 01:40:56 +0000
committernkostylev@chromium.org <nkostylev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-25 01:40:56 +0000
commit22d787862332c9787b3f863d665c50c9c1d34c5f (patch)
treeb667e97dfde6576331fde7b7f6686571f22d8dd1 /chrome/browser/chromeos/cros/network_library_impl_stub.cc
parente5e2de42502bdb68b9a4eb61c3d3d28bbcb1b5cb (diff)
downloadchromium_src-22d787862332c9787b3f863d665c50c9c1d34c5f.zip
chromium_src-22d787862332c9787b3f863d665c50c9c1d34c5f.tar.gz
chromium_src-22d787862332c9787b3f863d665c50c9c1d34c5f.tar.bz2
[cros] Enable portal check after EULA has been accepted.
cros part: https://gerrit.chromium.org/gerrit/#change,18863 DEPS: http://codereview.chromium.org/9838066/ BUG=chromium-os:25976 TEST=Manual. Used custom shill with portal check disabled by default. Proceed EULA, portal check is enabled. Review URL: http://codereview.chromium.org/9837040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128798 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/cros/network_library_impl_stub.cc')
-rw-r--r--chrome/browser/chromeos/cros/network_library_impl_stub.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/cros/network_library_impl_stub.cc b/chrome/browser/chromeos/cros/network_library_impl_stub.cc
index 1e46e88..8dabbd9 100644
--- a/chrome/browser/chromeos/cros/network_library_impl_stub.cc
+++ b/chrome/browser/chromeos/cros/network_library_impl_stub.cc
@@ -19,6 +19,8 @@ NetworkLibraryImplStub::NetworkLibraryImplStub()
pin_entered_(false),
connect_delay_ms_(0),
network_priority_order_(0) {
+ // Emulate default setting of the CheckPortalList when OOBE is done.
+ check_portal_list_ = "ethernet,wifi,cellular";
}
NetworkLibraryImplStub::~NetworkLibraryImplStub() {
@@ -506,6 +508,15 @@ void NetworkLibraryImplStub::CallRemoveNetwork(const Network* network) {}
/////////////////////////////////////////////////////////////////////////////
// NetworkLibrary implementation.
+void NetworkLibraryImplStub::SetCheckPortalList(const
+ std::string& check_portal_list) {
+ check_portal_list_ = check_portal_list;
+}
+
+void NetworkLibraryImplStub::SetDefaultCheckPortalList() {
+ SetCheckPortalList("ethernet,wifi,cellular");
+}
+
void NetworkLibraryImplStub::ChangePin(const std::string& old_pin,
const std::string& new_pin) {
sim_operation_ = SIM_OPERATION_CHANGE_PIN;