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

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

Issue 11419184: Add public accounts to UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made comment easier to understand. Created 8 years 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.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) 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/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/shell.h" 10 #include "ash/shell.h"
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 video_activity_notifier_.reset(); 646 video_activity_notifier_.reset();
647 primary_display_switch_observer_.reset(); 647 primary_display_switch_observer_.reset();
648 648
649 // Detach D-Bus clients before DBusThreadManager is shut down. 649 // Detach D-Bus clients before DBusThreadManager is shut down.
650 power_button_observer_.reset(); 650 power_button_observer_.reset();
651 screen_dimming_observer_.reset(); 651 screen_dimming_observer_.reset();
652 652
653 // Delete ContactManager while |g_browser_process| is still alive. 653 // Delete ContactManager while |g_browser_process| is still alive.
654 contact_manager_.reset(); 654 contact_manager_.reset();
655 655
656 // Let the UserManager unregister itself as an observer of the CrosSettings
657 // singleton before it is destroyed.
658 UserManager::Get()->Shutdown();
659
656 ChromeBrowserMainPartsLinux::PostMainMessageLoopRun(); 660 ChromeBrowserMainPartsLinux::PostMainMessageLoopRun();
657 } 661 }
658 662
659 void ChromeBrowserMainPartsChromeos::SetupPlatformFieldTrials() { 663 void ChromeBrowserMainPartsChromeos::SetupPlatformFieldTrials() {
660 SetupLowMemoryHeadroomFieldTrial(); 664 SetupLowMemoryHeadroomFieldTrial();
661 } 665 }
662 666
663 void ChromeBrowserMainPartsChromeos::SetupLowMemoryHeadroomFieldTrial() { 667 void ChromeBrowserMainPartsChromeos::SetupLowMemoryHeadroomFieldTrial() {
664 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel(); 668 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
665 // Only enable this experiment on Canary and Dev, since it's possible 669 // Only enable this experiment on Canary and Dev, since it's possible
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 } else if (trial->group() == margin_200mb) { 704 } else if (trial->group() == margin_200mb) {
701 LOG(WARNING) << "low_mem: Part of '200MB' experiment"; 705 LOG(WARNING) << "low_mem: Part of '200MB' experiment";
702 LowMemoryObserver::SetLowMemoryMargin(200); 706 LowMemoryObserver::SetLowMemoryMargin(200);
703 } else { 707 } else {
704 LOG(WARNING) << "low_mem: Part of 'default' experiment"; 708 LOG(WARNING) << "low_mem: Part of 'default' experiment";
705 } 709 }
706 } 710 }
707 } 711 }
708 712
709 } // namespace chromeos 713 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698