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

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: 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..3626e09c33b33bbb1a6bebc52ff300d196b1e0b1 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,11 @@ 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.
Alexei Svitkine (slow) 2013/06/10 17:44:52 Nit: Blank line before the coment.
calamity 2013/06/13 06:26:03 Done.
+ void OnProfileIconCreateSuccess();
void EnsureRequestContextCreated() {
GetRequestContext();
@@ -224,6 +230,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