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

Side by Side Diff: chrome/browser/profiles/profile_shortcut_manager_win.h

Issue 11876027: ProfileShortcutManagerWin: Don't create user level shortcut when system level one exists. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_
7 7
8 #include "chrome/browser/profiles/profile_shortcut_manager.h" 8 #include "chrome/browser/profiles/profile_shortcut_manager.h"
9 9
10 class BrowserDistribution; 10 class BrowserDistribution;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // ProfileInfoCacheObserver implementation: 55 // ProfileInfoCacheObserver implementation:
56 virtual void OnProfileAdded(const FilePath& profile_path) OVERRIDE; 56 virtual void OnProfileAdded(const FilePath& profile_path) OVERRIDE;
57 virtual void OnProfileWillBeRemoved(const FilePath& profile_path) OVERRIDE; 57 virtual void OnProfileWillBeRemoved(const FilePath& profile_path) OVERRIDE;
58 virtual void OnProfileWasRemoved(const FilePath& profile_path, 58 virtual void OnProfileWasRemoved(const FilePath& profile_path,
59 const string16& profile_name) OVERRIDE; 59 const string16& profile_name) OVERRIDE;
60 virtual void OnProfileNameChanged(const FilePath& profile_path, 60 virtual void OnProfileNameChanged(const FilePath& profile_path,
61 const string16& old_profile_name) OVERRIDE; 61 const string16& old_profile_name) OVERRIDE;
62 virtual void OnProfileAvatarChanged(const FilePath& profile_path) OVERRIDE; 62 virtual void OnProfileAvatarChanged(const FilePath& profile_path) OVERRIDE;
63 63
64 private: 64 private:
65 void StartProfileShortcutNameChange(const FilePath& profile_path,
66 const string16& old_profile_name);
67
68 // Gives the profile path of an alternate profile than |profile_path|. 65 // Gives the profile path of an alternate profile than |profile_path|.
69 // Must only be called when the number profiles is 2. 66 // Must only be called when the number profiles is 2.
70 FilePath GetOtherProfilePath(const FilePath& profile_path); 67 FilePath GetOtherProfilePath(const FilePath& profile_path);
71 68
72 void CreateOrUpdateShortcutsForProfileAtPath(const FilePath& profile_path, 69 void CreateOrUpdateShortcutsForProfileAtPath(const FilePath& profile_path,
73 CreateOrUpdateMode create_mode, 70 CreateOrUpdateMode create_mode,
74 NonProfileShortcutAction action); 71 NonProfileShortcutAction action);
75 72
76 ProfileManager* profile_manager_; 73 ProfileManager* profile_manager_;
77 74
78 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManagerWin); 75 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManagerWin);
79 }; 76 };
80 77
81 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ 78 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698