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

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

Issue 14137032: Create profile .ico file on profile creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add test, rework Created 7 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/profiles/profile_impl.h
diff --git a/chrome/browser/profiles/profile_impl.h b/chrome/browser/profiles/profile_impl.h
index 6f4f415ab1934fa1860dfb6a59e9a182acd649c6..e46dd87ce0ef01eef5b2f675639072de70f290d9 100644
--- a/chrome/browser/profiles/profile_impl.h
+++ b/chrome/browser/profiles/profile_impl.h
@@ -13,6 +13,7 @@
#include "base/gtest_prod_util.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "base/prefs/pref_change_registrar.h"
#include "base/timer.h"
#include "chrome/browser/profiles/profile.h"
@@ -174,6 +175,12 @@ class ProfileImpl : public Profile {
void EnsureSessionServiceCreated();
#endif
+ // Updates the icon file for this profile if the icon version in the prefs is
+ // out of date.
+ void UpdateProfileIconIfNecessary();
+
+ // Sets the icon version in the prefs on successful icon creation.
+ void OnProfileIconCreateSuccess();
void EnsureRequestContextCreated() {
GetRequestContext();
@@ -224,6 +231,8 @@ class ProfileImpl : public Profile {
scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
scoped_refptr<history::ShortcutsBackend> shortcuts_backend_;
+ base::WeakPtrFactory<ProfileImpl> weak_ptr_factory_;
+
// Exit type the last time the profile was opened. This is set only once from
// prefs.
ExitType last_session_exit_type_;

Powered by Google App Engine
This is Rietveld 408576698