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

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

Issue 208273005: If customization includes default wallpaper, download and apply it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after-review. 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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 void WizardController::StartTimezoneResolve() const { 640 void WizardController::StartTimezoneResolve() const {
641 LoginLocationMonitor::InstallLocationCallback( 641 LoginLocationMonitor::InstallLocationCallback(
642 base::TimeDelta::FromSeconds(kResolveTimeZoneTimeoutSeconds)); 642 base::TimeDelta::FromSeconds(kResolveTimeZoneTimeoutSeconds));
643 } 643 }
644 644
645 void WizardController::PerformPostEulaActions() { 645 void WizardController::PerformPostEulaActions() {
646 DelayNetworkCall( 646 DelayNetworkCall(
647 base::Bind(&WizardController::StartTimezoneResolve, 647 base::Bind(&WizardController::StartTimezoneResolve,
648 weak_factory_.GetWeakPtr()), 648 weak_factory_.GetWeakPtr()),
649 base::TimeDelta::FromMilliseconds(kDefaultNetworkRetryDelayMS)); 649 base::TimeDelta::FromMilliseconds(kDefaultNetworkRetryDelayMS));
650 ServicesCustomizationDocument::GetInstance()->StartFetching();
650 651
651 // Now that EULA has been accepted (for official builds), enable portal check. 652 // Now that EULA has been accepted (for official builds), enable portal check.
652 // ChromiumOS builds would go though this code path too. 653 // ChromiumOS builds would go though this code path too.
653 NetworkHandler::Get()->network_state_handler()->SetCheckPortalList( 654 NetworkHandler::Get()->network_state_handler()->SetCheckPortalList(
654 NetworkStateHandler::kDefaultCheckPortalList); 655 NetworkStateHandler::kDefaultCheckPortalList);
655 host_->CheckForAutoEnrollment(); 656 host_->CheckForAutoEnrollment();
656 host_->PrewarmAuthentication(); 657 host_->PrewarmAuthentication();
657 NetworkPortalDetector::Get()->Enable(true); 658 NetworkPortalDetector::Get()->Enable(true);
658 } 659 }
659 660
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 TimeZoneProvider* WizardController::GetTimezoneProvider() { 1046 TimeZoneProvider* WizardController::GetTimezoneProvider() {
1046 if (!timezone_provider_) { 1047 if (!timezone_provider_) {
1047 timezone_provider_.reset( 1048 timezone_provider_.reset(
1048 new TimeZoneProvider(g_browser_process->system_request_context(), 1049 new TimeZoneProvider(g_browser_process->system_request_context(),
1049 DefaultTimezoneProviderURL())); 1050 DefaultTimezoneProviderURL()));
1050 } 1051 }
1051 return timezone_provider_.get(); 1052 return timezone_provider_.get();
1052 } 1053 }
1053 1054
1054 } // namespace chromeos 1055 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wallpaper_manager_unittest.cc ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698