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

Unified Diff: chrome/browser/profiles/profile_info_cache.h

Issue 678553002: Badge icons in windows task bar with avatar icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests with no profile manager Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_info_cache.h
diff --git a/chrome/browser/profiles/profile_info_cache.h b/chrome/browser/profiles/profile_info_cache.h
index a06315425cba9a0b6d5a1c0e00d243092b6efd74..eccbaf6577ff25fad04f3c5ef69e05130281eb90 100644
--- a/chrome/browser/profiles/profile_info_cache.h
+++ b/chrome/browser/profiles/profile_info_cache.h
@@ -185,12 +185,14 @@ class ProfileInfoCache : public ProfileInfoInterface,
// Returns the decoded image at |image_path|. Used both by the GAIA profile
// image and the high res avatars.
const gfx::Image* LoadAvatarPictureFromPath(
+ const base::FilePath& profile_path,
const std::string& key,
const base::FilePath& image_path) const;
// Called when the picture given by |key| has been loaded from disk and
// decoded into |image|.
- void OnAvatarPictureLoaded(const std::string& key,
+ void OnAvatarPictureLoaded(const base::FilePath& profile_path,
+ const std::string& key,
gfx::Image** image) const;
// Called when the picture given by |file_name| has been saved to disk.
// Used both for the GAIA profile picture and the high res avatar files.
@@ -206,7 +208,7 @@ class ProfileInfoCache : public ProfileInfoInterface,
std::vector<std::string> sorted_keys_;
base::FilePath user_data_dir_;
- ObserverList<ProfileInfoCacheObserver> observer_list_;
+ mutable ObserverList<ProfileInfoCacheObserver> observer_list_;
// A cache of gaia/high res avatar profile pictures. This cache is updated
// lazily so it needs to be mutable.

Powered by Google App Engine
This is Rietveld 408576698