Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(976)

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 236013002: Apply default wallpaper from customization manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments updated. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 DelayNetworkCall(
656 ServicesCustomizationDocument::GetInstance()
657 ->EnsureCustomizationAppliedClosure(),
658 base::TimeDelta::FromMilliseconds(kDefaultNetworkRetryDelayMS));
655 659
656 // Now that EULA has been accepted (for official builds), enable portal check. 660 // Now that EULA has been accepted (for official builds), enable portal check.
657 // ChromiumOS builds would go though this code path too. 661 // ChromiumOS builds would go though this code path too.
658 NetworkHandler::Get()->network_state_handler()->SetCheckPortalList( 662 NetworkHandler::Get()->network_state_handler()->SetCheckPortalList(
659 NetworkStateHandler::kDefaultCheckPortalList); 663 NetworkStateHandler::kDefaultCheckPortalList);
660 host_->GetAutoEnrollmentController()->Start(); 664 host_->GetAutoEnrollmentController()->Start();
661 host_->PrewarmAuthentication(); 665 host_->PrewarmAuthentication();
662 NetworkPortalDetector::Get()->Enable(true); 666 NetworkPortalDetector::Get()->Enable(true);
663 } 667 }
664 668
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 TimeZoneProvider* WizardController::GetTimezoneProvider() { 1015 TimeZoneProvider* WizardController::GetTimezoneProvider() {
1012 if (!timezone_provider_) { 1016 if (!timezone_provider_) {
1013 timezone_provider_.reset( 1017 timezone_provider_.reset(
1014 new TimeZoneProvider(g_browser_process->system_request_context(), 1018 new TimeZoneProvider(g_browser_process->system_request_context(),
1015 DefaultTimezoneProviderURL())); 1019 DefaultTimezoneProviderURL()));
1016 } 1020 }
1017 return timezone_provider_.get(); 1021 return timezone_provider_.get();
1018 } 1022 }
1019 1023
1020 } // namespace chromeos 1024 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698