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

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: Allow customization without wallpaper. 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 void WizardController::StartTimezoneResolve() const { 666 void WizardController::StartTimezoneResolve() const {
667 LoginLocationMonitor::InstallLocationCallback( 667 LoginLocationMonitor::InstallLocationCallback(
668 base::TimeDelta::FromSeconds(kResolveTimeZoneTimeoutSeconds)); 668 base::TimeDelta::FromSeconds(kResolveTimeZoneTimeoutSeconds));
669 } 669 }
670 670
671 void WizardController::PerformPostEulaActions() { 671 void WizardController::PerformPostEulaActions() {
672 DelayNetworkCall( 672 DelayNetworkCall(
673 base::Bind(&WizardController::StartTimezoneResolve, 673 base::Bind(&WizardController::StartTimezoneResolve,
674 weak_factory_.GetWeakPtr()), 674 weak_factory_.GetWeakPtr()),
675 base::TimeDelta::FromMilliseconds(kDefaultNetworkRetryDelayMS)); 675 base::TimeDelta::FromMilliseconds(kDefaultNetworkRetryDelayMS));
676 DelayNetworkCall(
677 ServicesCustomizationDocument::GetInstance()
678 ->EnsureCustomizationAppliedClosure(),
679 base::TimeDelta::FromMilliseconds(kDefaultNetworkRetryDelayMS));
676 680
677 // Now that EULA has been accepted (for official builds), enable portal check. 681 // Now that EULA has been accepted (for official builds), enable portal check.
678 // ChromiumOS builds would go though this code path too. 682 // ChromiumOS builds would go though this code path too.
679 NetworkHandler::Get()->network_state_handler()->SetCheckPortalList( 683 NetworkHandler::Get()->network_state_handler()->SetCheckPortalList(
680 NetworkStateHandler::kDefaultCheckPortalList); 684 NetworkStateHandler::kDefaultCheckPortalList);
681 host_->GetAutoEnrollmentController()->Start(); 685 host_->GetAutoEnrollmentController()->Start();
682 host_->PrewarmAuthentication(); 686 host_->PrewarmAuthentication();
683 NetworkPortalDetector::Get()->Enable(true); 687 NetworkPortalDetector::Get()->Enable(true);
684 } 688 }
685 689
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 TimeZoneProvider* WizardController::GetTimezoneProvider() { 1041 TimeZoneProvider* WizardController::GetTimezoneProvider() {
1038 if (!timezone_provider_) { 1042 if (!timezone_provider_) {
1039 timezone_provider_.reset( 1043 timezone_provider_.reset(
1040 new TimeZoneProvider(g_browser_process->system_request_context(), 1044 new TimeZoneProvider(g_browser_process->system_request_context(),
1041 DefaultTimezoneProviderURL())); 1045 DefaultTimezoneProviderURL()));
1042 } 1046 }
1043 return timezone_provider_.get(); 1047 return timezone_provider_.get();
1044 } 1048 }
1045 1049
1046 } // namespace chromeos 1050 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698