OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/login/wizard_controller.h" | 5 #include "chrome/browser/chromeos/login/wizard_controller.h" |
6 | 6 |
7 #include <signal.h> | 7 #include <signal.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 | 10 |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
645 void WizardController::StartTimezoneResolve() const { | 645 void WizardController::StartTimezoneResolve() const { |
646 LoginLocationMonitor::InstallLocationCallback( | 646 LoginLocationMonitor::InstallLocationCallback( |
647 base::TimeDelta::FromSeconds(kResolveTimeZoneTimeoutSeconds)); | 647 base::TimeDelta::FromSeconds(kResolveTimeZoneTimeoutSeconds)); |
648 } | 648 } |
649 | 649 |
650 void WizardController::PerformPostEulaActions() { | 650 void WizardController::PerformPostEulaActions() { |
651 DelayNetworkCall( | 651 DelayNetworkCall( |
652 base::Bind(&WizardController::StartTimezoneResolve, | 652 base::Bind(&WizardController::StartTimezoneResolve, |
653 weak_factory_.GetWeakPtr()), | 653 weak_factory_.GetWeakPtr()), |
654 base::TimeDelta::FromMilliseconds(kDefaultNetworkRetryDelayMS)); | 654 base::TimeDelta::FromMilliseconds(kDefaultNetworkRetryDelayMS)); |
655 ServicesCustomizationDocument::GetInstance()->StartFetching(); | |
Nikita (slow)
2014/04/15 12:39:24
Is this the only place where StartFetching() is ca
Alexander Alekseev
2014/04/15 22:47:31
As far as I understand, customization will be addi
Dmitry Polukhin
2014/04/15 22:57:06
I think it should be somewhere near ShowLoginWizar
Nikita (slow)
2014/04/16 18:16:21
Please make sure that customization document heade
Alexander Alekseev
2014/04/16 23:19:59
Done.
Alexander Alekseev
2014/04/16 23:19:59
There is a comment on no-refetch policy here:
http
| |
655 | 656 |
656 // Now that EULA has been accepted (for official builds), enable portal check. | 657 // Now that EULA has been accepted (for official builds), enable portal check. |
657 // ChromiumOS builds would go though this code path too. | 658 // ChromiumOS builds would go though this code path too. |
658 NetworkHandler::Get()->network_state_handler()->SetCheckPortalList( | 659 NetworkHandler::Get()->network_state_handler()->SetCheckPortalList( |
659 NetworkStateHandler::kDefaultCheckPortalList); | 660 NetworkStateHandler::kDefaultCheckPortalList); |
660 host_->GetAutoEnrollmentController()->Start(); | 661 host_->GetAutoEnrollmentController()->Start(); |
661 host_->PrewarmAuthentication(); | 662 host_->PrewarmAuthentication(); |
662 NetworkPortalDetector::Get()->Enable(true); | 663 NetworkPortalDetector::Get()->Enable(true); |
663 } | 664 } |
664 | 665 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1011 TimeZoneProvider* WizardController::GetTimezoneProvider() { | 1012 TimeZoneProvider* WizardController::GetTimezoneProvider() { |
1012 if (!timezone_provider_) { | 1013 if (!timezone_provider_) { |
1013 timezone_provider_.reset( | 1014 timezone_provider_.reset( |
1014 new TimeZoneProvider(g_browser_process->system_request_context(), | 1015 new TimeZoneProvider(g_browser_process->system_request_context(), |
1015 DefaultTimezoneProviderURL())); | 1016 DefaultTimezoneProviderURL())); |
1016 } | 1017 } |
1017 return timezone_provider_.get(); | 1018 return timezone_provider_.get(); |
1018 } | 1019 } |
1019 | 1020 |
1020 } // namespace chromeos | 1021 } // namespace chromeos |
OLD | NEW |