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

Unified Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 2082363004: Show notifications on low disk space. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@low-disk-strings
Patch Set: Switch to thread checker instead of checking for UI thread explicitly Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/chrome_browser_main_chromeos.cc
diff --git a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
index a29bfaef1816a1ec30d93f6c5bb5718d49849536..cfd31f58523c03bdd02690a3f9e9b7a79dcf9cb6 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -77,6 +77,7 @@
#include "chrome/browser/chromeos/settings/device_settings_service.h"
#include "chrome/browser/chromeos/status/data_promo_notification.h"
#include "chrome/browser/chromeos/system/input_device_settings.h"
+#include "chrome/browser/chromeos/ui/low_disk_notification.h"
#include "chrome/browser/chromeos/upgrade_detector_chromeos.h"
#include "chrome/browser/defaults.h"
#include "chrome/browser/lifetime/application_lifetime.h"
@@ -685,6 +686,9 @@ void ChromeBrowserMainPartsChromeos::PostProfileInit() {
arc::ArcServiceManager::Get()->OnAshStarted();
}
+ // Start watching for low disk space events to notify the user.
+ low_disk_notification_.reset(new LowDiskNotification());
+
ChromeBrowserMainPartsLinux::PostProfileInit();
}
@@ -793,6 +797,7 @@ void ChromeBrowserMainPartsChromeos::PostMainMessageLoopRun() {
wake_on_wifi_manager_.reset();
ScreenLocker::ShutDownClass();
keyboard_event_rewriters_.reset();
+ low_disk_notification_.reset();
#if defined(USE_X11)
// The XInput2 event listener needs to be shut down earlier than when
// Singletons are finally destroyed in AtExitManager.
« no previous file with comments | « chrome/browser/chromeos/chrome_browser_main_chromeos.h ('k') | chrome/browser/chromeos/ui/low_disk_notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698