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

Unified Diff: chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h

Issue 1010443003: Make the lifetime of wallpaper manager more clear. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/login/users/wallpaper/wallpaper_manager.h
diff --git a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h
index 536d752dcfb088f21aec427677d048e5cf58592c..8b2b4d1c8e69e880e2c2fcb27fa94f1ab60280ad 100644
--- a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h
+++ b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h
@@ -37,18 +37,17 @@ class WallpaperManager :
public:
class PendingWallpaper;
- WallpaperManager();
~WallpaperManager() override;
// Get pointer to singleton WallpaperManager instance, create it if necessary.
static WallpaperManager* Get();
- // Returns the appropriate wallpaper resolution for all root windows.
- WallpaperResolution GetAppropriateResolution() override;
-
// Indicates imminent shutdown, allowing the WallpaperManager to remove any
// observers it has registered.
- void Shutdown() override;
+ static void Shutdown();
+
+ // Returns the appropriate wallpaper resolution for all root windows.
+ WallpaperResolution GetAppropriateResolution() override;
// Adds PowerManagerClient, TimeZoneSettings and CrosSettings observers.
void AddObservers() override;
@@ -127,6 +126,8 @@ class WallpaperManager :
friend class WallpaperManagerBrowserTestDefaultWallpaper;
friend class WallpaperManagerPolicyTest;
+ WallpaperManager();
+
// Returns modifiable PendingWallpaper.
// Returns pending_inactive_ or creates new PendingWallpaper if necessary.
PendingWallpaper* GetPendingWallpaper(const std::string& user_id,

Powered by Google App Engine
This is Rietveld 408576698