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

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

Issue 2420843002: Do not watch for low disk events in guest mode. (Closed)
Patch Set: Created 4 years, 2 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
« 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 new RendererFreezer(std::unique_ptr<RendererFreezer::Delegate>( 681 new RendererFreezer(std::unique_ptr<RendererFreezer::Delegate>(
682 new FreezerCgroupProcessManager()))); 682 new FreezerCgroupProcessManager())));
683 683
684 g_browser_process->platform_part()->InitializeAutomaticRebootManager(); 684 g_browser_process->platform_part()->InitializeAutomaticRebootManager();
685 g_browser_process->platform_part()->InitializeDeviceDisablingManager(); 685 g_browser_process->platform_part()->InitializeDeviceDisablingManager();
686 686
687 // This observer cannot be created earlier because it requires the shell to be 687 // This observer cannot be created earlier because it requires the shell to be
688 // available. 688 // available.
689 idle_action_warning_observer_.reset(new IdleActionWarningObserver()); 689 idle_action_warning_observer_.reset(new IdleActionWarningObserver());
690 690
691 // Start watching for low disk space events to notify the user. 691 // Start watching for low disk space events to notify the user if it is not a
692 low_disk_notification_.reset(new LowDiskNotification()); 692 // guest profile.
693 if (!user_manager::UserManager::Get()->IsLoggedInAsGuest())
694 low_disk_notification_.reset(new LowDiskNotification());
693 695
694 // Authenticate the user for PIN quick unlock. 696 // Authenticate the user for PIN quick unlock.
695 PinStorage* pin_storage = PinStorageFactory::GetForProfile(profile()); 697 PinStorage* pin_storage = PinStorageFactory::GetForProfile(profile());
696 if (pin_storage) 698 if (pin_storage)
697 pin_storage->MarkStrongAuth(); 699 pin_storage->MarkStrongAuth();
698 700
699 ChromeBrowserMainPartsLinux::PostProfileInit(); 701 ChromeBrowserMainPartsLinux::PostProfileInit();
700 } 702 }
701 703
702 void ChromeBrowserMainPartsChromeos::PreBrowserStart() { 704 void ChromeBrowserMainPartsChromeos::PreBrowserStart() {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 // Destroy DBus services immediately after threads are stopped. 894 // Destroy DBus services immediately after threads are stopped.
893 dbus_services_.reset(); 895 dbus_services_.reset();
894 896
895 ChromeBrowserMainPartsLinux::PostDestroyThreads(); 897 ChromeBrowserMainPartsLinux::PostDestroyThreads();
896 898
897 // Destroy DeviceSettingsService after g_browser_process. 899 // Destroy DeviceSettingsService after g_browser_process.
898 DeviceSettingsService::Shutdown(); 900 DeviceSettingsService::Shutdown();
899 } 901 }
900 902
901 } // namespace chromeos 903 } // 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