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

Unified Diff: chrome/browser/background/background_mode_manager.h

Issue 1420163003: Fixed Windows system tray icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@profile-icon-imagefamily
Patch Set: Fix crash (avoid async call from DisplayClientInstalledNotification). Created 5 years, 1 month 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/background/background_mode_manager.h
diff --git a/chrome/browser/background/background_mode_manager.h b/chrome/browser/background/background_mode_manager.h
index 8ced6a73742b85153f7d02ce4f2202564bc21cc3..45d61c971a06817458bbb874653edf94b4f3809a 100644
--- a/chrome/browser/background/background_mode_manager.h
+++ b/chrome/browser/background/background_mode_manager.h
@@ -328,9 +328,13 @@ class BackgroundModeManager
base::string16 GetPreferencesMenuLabel();
// Create a status tray icon to allow the user to shutdown Chrome when running
- // in background mode. Virtual to enable testing.
+ // in background mode. Asynchronous (|status_icon_| will not be ready
+ // immediately). Virtual to enable testing.
virtual void CreateStatusTrayIcon();
+ // Internal implementation of CreateStatusTrayIcon (for use as a posted task).
+ void CreateStatusTrayIconTask();
+
// Removes the status tray icon because we are exiting background mode.
// Virtual to enable testing.
virtual void RemoveStatusTrayIcon();

Powered by Google App Engine
This is Rietveld 408576698