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

Side by Side Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 14637019: Merge 199159 "Removed visual jank during kiosk app launch caused..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/src/
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/chrome_browser_main_chromeos.h" 5 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_switches.h" 10 #include "ash/ash_switches.h"
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 WallpaperManager::Get()->AddObservers(); 607 WallpaperManager::Get()->AddObservers();
608 608
609 #if defined(USE_LINUX_BREAKPAD) 609 #if defined(USE_LINUX_BREAKPAD)
610 cros_version_loader_.GetVersion(VersionLoader::VERSION_FULL, 610 cros_version_loader_.GetVersion(VersionLoader::VERSION_FULL,
611 base::Bind(&ChromeOSVersionCallback), 611 base::Bind(&ChromeOSVersionCallback),
612 &tracker_); 612 &tracker_);
613 #endif 613 #endif
614 614
615 storage_monitor_.reset(new StorageMonitorCros()); 615 storage_monitor_.reset(new StorageMonitorCros());
616 616
617 // Make sure that wallpaper boot transition and other delays in OOBE
618 // are disabled for tests and kiosk app launch by default.
619 // Individual tests may enable them if they want.
620 if (parsed_command_line().HasSwitch(::switches::kTestType) ||
621 ShouldAutoLaunchKioskApp(parsed_command_line())) {
622 WizardController::SetZeroDelays();
623 }
624
617 // In Aura builds this will initialize ash::Shell. 625 // In Aura builds this will initialize ash::Shell.
618 ChromeBrowserMainPartsLinux::PreProfileInit(); 626 ChromeBrowserMainPartsLinux::PreProfileInit();
619 } 627 }
620 628
621 void ChromeBrowserMainPartsChromeos::PostProfileInit() { 629 void ChromeBrowserMainPartsChromeos::PostProfileInit() {
622 // -- This used to be in ChromeBrowserMainParts::PreMainMessageLoopRun() 630 // -- This used to be in ChromeBrowserMainParts::PreMainMessageLoopRun()
623 // -- just after CreateProfile(). 631 // -- just after CreateProfile().
624 632
625 if (parsed_command_line().HasSwitch(switches::kLoginUser) && 633 if (parsed_command_line().HasSwitch(switches::kLoginUser) &&
626 !parsed_command_line().HasSwitch(switches::kLoginPassword)) { 634 !parsed_command_line().HasSwitch(switches::kLoginPassword)) {
627 // Make sure we flip every profile to not share proxies if the user hasn't 635 // Make sure we flip every profile to not share proxies if the user hasn't
628 // specified so explicitly. 636 // specified so explicitly.
629 const PrefService::Preference* use_shared_proxies_pref = 637 const PrefService::Preference* use_shared_proxies_pref =
630 profile()->GetPrefs()->FindPreference(prefs::kUseSharedProxies); 638 profile()->GetPrefs()->FindPreference(prefs::kUseSharedProxies);
631 if (use_shared_proxies_pref->IsDefaultValue()) 639 if (use_shared_proxies_pref->IsDefaultValue())
632 profile()->GetPrefs()->SetBoolean(prefs::kUseSharedProxies, false); 640 profile()->GetPrefs()->SetBoolean(prefs::kUseSharedProxies, false);
633 641
634 // This is done in LoginUtils::OnProfileCreated during normal login. 642 // This is done in LoginUtils::OnProfileCreated during normal login.
635 LoginUtils::Get()->InitRlzDelayed(profile()); 643 LoginUtils::Get()->InitRlzDelayed(profile());
636 } 644 }
637 645
638 // Make sure the NetworkConfigurationUpdater is ready so that it pushes ONC 646 // Make sure the NetworkConfigurationUpdater is ready so that it pushes ONC
639 // configuration before login. 647 // configuration before login.
640 g_browser_process->browser_policy_connector()-> 648 g_browser_process->browser_policy_connector()->
641 GetNetworkConfigurationUpdater(); 649 GetNetworkConfigurationUpdater();
642 650
643 // Make sure that wallpaper boot transition and other delays in OOBE
644 // are disabled for tests by default.
645 // Individual tests may enable them if they want.
646 if (parsed_command_line().HasSwitch(::switches::kTestType))
647 WizardController::SetZeroDelays();
648
649 // Start loading the machine statistics. Note: if we start loading machine 651 // Start loading the machine statistics. Note: if we start loading machine
650 // statistics early in PreEarlyInitialization() then the crossystem tool 652 // statistics early in PreEarlyInitialization() then the crossystem tool
651 // sometimes hangs for unknown reasons, see http://crbug.com/167671. 653 // sometimes hangs for unknown reasons, see http://crbug.com/167671.
652 // Also we must start loading no later than this point, because login manager 654 // Also we must start loading no later than this point, because login manager
653 // may call GetMachineStatistic() during startup, see crbug.com/170635. 655 // may call GetMachineStatistic() during startup, see crbug.com/170635.
654 system::StatisticsProvider::GetInstance()->StartLoadingMachineStatistics(); 656 system::StatisticsProvider::GetInstance()->StartLoadingMachineStatistics();
655 657
656 // Tests should be able to tune login manager before showing it. 658 // Tests should be able to tune login manager before showing it.
657 // Thus only show login manager in normal (non-testing) mode. 659 // Thus only show login manager in normal (non-testing) mode.
658 if (!parameters().ui_task || 660 if (!parameters().ui_task ||
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 trial->AppendGroup("4GB_RAM_4GB_swap", zram_group == '4' ? 1 : 0); 901 trial->AppendGroup("4GB_RAM_4GB_swap", zram_group == '4' ? 1 : 0);
900 trial->AppendGroup("4GB_RAM_6GB_swap", zram_group == '5' ? 1 : 0); 902 trial->AppendGroup("4GB_RAM_6GB_swap", zram_group == '5' ? 1 : 0);
901 trial->AppendGroup("snow_no_swap", zram_group == '6' ? 1 : 0); 903 trial->AppendGroup("snow_no_swap", zram_group == '6' ? 1 : 0);
902 trial->AppendGroup("snow_1GB_swap", zram_group == '7' ? 1 : 0); 904 trial->AppendGroup("snow_1GB_swap", zram_group == '7' ? 1 : 0);
903 trial->AppendGroup("snow_2GB_swap", zram_group == '8' ? 1 : 0); 905 trial->AppendGroup("snow_2GB_swap", zram_group == '8' ? 1 : 0);
904 // This is necessary to start the experiment as a side effect. 906 // This is necessary to start the experiment as a side effect.
905 trial->group(); 907 trial->group();
906 } 908 }
907 909
908 } // namespace chromeos 910 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698