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

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

Issue 8785006: Badge Windows profile shortcuts with multi-user avatar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Applied some grt memory suggestions. Created 9 years 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_shortcut_manager_win.h
===================================================================
--- chrome/browser/profiles/profile_shortcut_manager_win.h (revision 112717)
+++ chrome/browser/profiles/profile_shortcut_manager_win.h (working copy)
@@ -8,8 +8,6 @@
#include <vector>
-#include "base/callback_forward.h"
-#include "base/compiler_specific.h"
#include "base/string16.h"
#include "chrome/browser/profiles/profile_info_cache_observer.h"
@@ -23,12 +21,19 @@
// ProfileInfoCacheObserver:
virtual void OnProfileAdded(
const string16& profile_name,
- const string16& profile_base_dir) OVERRIDE;
+ const string16& profile_base_dir,
+ const FilePath& profile_path,
+ const gfx::Image* avatar_image) OVERRIDE;
virtual void OnProfileRemoved(
const string16& profile_name) OVERRIDE;
virtual void OnProfileNameChanged(
const string16& old_profile_name,
const string16& new_profile_name) OVERRIDE;
+ virtual void OnProfileAvatarChanged(
+ const string16& profile_name,
+ const string16& profile_base_dir,
+ const FilePath& profile_path,
+ const gfx::Image* avatar_image) OVERRIDE;
// Takes a vector of profile names (for example: "Sparky") and generates a
// vector of shortcut link names (for example: "Chromium (Sparky).lnk").
@@ -36,26 +41,6 @@
const std::vector<string16>& profile_names);
private:
- // Creates a desktop shortcut to open Chrome with the given profile name and
- // directory. Iff |create|, create shortcut if it doesn't already exist. Must
- // be called on the FILE thread.
- static void CreateChromeDesktopShortcutForProfile(
- const string16& profile_name,
- const string16& directory,
- bool create);
-
- // Renames an existing Chrome desktop profile shortcut. Must be called on the
- // FILE thread.
- static void RenameChromeDesktopShortcutForProfile(
- const string16& old_profile_name,
- const string16& new_profile_name);
-
- // Updates the arguments to a Chrome desktop shortcut for a profile. Must be
- // called on the FILE thread.
- static void UpdateChromeDesktopShortcutForProfile(
- const string16& shortcut,
- const string16& arguments);
-
DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManagerWin);
};

Powered by Google App Engine
This is Rietveld 408576698