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

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

Issue 23678007: OAuth2LoginManager+MergeSessionThrottle hardening, multi-profle support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | chrome/browser/chromeos/login/existing_user_controller_browsertest.cc » ('j') | 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 } 675 }
676 676
677 // Shut down services before the browser process, etc are destroyed. 677 // Shut down services before the browser process, etc are destroyed.
678 void ChromeBrowserMainPartsChromeos::PostMainMessageLoopRun() { 678 void ChromeBrowserMainPartsChromeos::PostMainMessageLoopRun() {
679 BootTimesLoader::Get()->AddLogoutTimeMarker("UIMessageLoopEnded", true); 679 BootTimesLoader::Get()->AddLogoutTimeMarker("UIMessageLoopEnded", true);
680 680
681 g_browser_process->platform_part()->oom_priority_manager()->Stop(); 681 g_browser_process->platform_part()->oom_priority_manager()->Stop();
682 682
683 swap_metrics_.reset(); 683 swap_metrics_.reset();
684 684
685 // Stops LoginUtils background fetchers. This is needed because IO thread is
686 // going to stop soon after this function. The pending background jobs could
687 // cause it to crash during shutdown.
688 LoginUtils::Get()->StopBackgroundFetchers();
689
690 // Stops all in-flight OAuth2 token fetchers before the IO thread stops. 685 // Stops all in-flight OAuth2 token fetchers before the IO thread stops.
691 DeviceOAuth2TokenServiceFactory::Shutdown(); 686 DeviceOAuth2TokenServiceFactory::Shutdown();
692 687
693 // Shutdown the upgrade detector for Chrome OS. The upgrade detector 688 // Shutdown the upgrade detector for Chrome OS. The upgrade detector
694 // stops monitoring changes from the update engine. 689 // stops monitoring changes from the update engine.
695 if (UpgradeDetectorChromeos::GetInstance()) 690 if (UpgradeDetectorChromeos::GetInstance())
696 UpgradeDetectorChromeos::GetInstance()->Shutdown(); 691 UpgradeDetectorChromeos::GetInstance()->Shutdown();
697 692
698 // Shutdown the network change notifier for Chrome OS. The network 693 // Shutdown the network change notifier for Chrome OS. The network
699 // change notifier stops monitoring changes from the power manager and 694 // change notifier stops monitoring changes from the power manager and
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 778
784 // Destroy DeviceSettingsService after g_browser_process. 779 // Destroy DeviceSettingsService after g_browser_process.
785 DeviceSettingsService::Shutdown(); 780 DeviceSettingsService::Shutdown();
786 } 781 }
787 782
788 void ChromeBrowserMainPartsChromeos::SetupPlatformFieldTrials() { 783 void ChromeBrowserMainPartsChromeos::SetupPlatformFieldTrials() {
789 default_pinned_apps_field_trial::SetupTrial(); 784 default_pinned_apps_field_trial::SetupTrial();
790 } 785 }
791 786
792 } // namespace chromeos 787 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/existing_user_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698