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

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

Issue 16035013: ProfileInfoCacheObserver: All methods now have a default empty implementation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual void CreateProfileShortcut( 49 virtual void CreateProfileShortcut(
50 const base::FilePath& profile_path) OVERRIDE; 50 const base::FilePath& profile_path) OVERRIDE;
51 virtual void RemoveProfileShortcuts( 51 virtual void RemoveProfileShortcuts(
52 const base::FilePath& profile_path) OVERRIDE; 52 const base::FilePath& profile_path) OVERRIDE;
53 virtual void HasProfileShortcuts( 53 virtual void HasProfileShortcuts(
54 const base::FilePath& profile_path, 54 const base::FilePath& profile_path,
55 const base::Callback<void(bool)>& callback) OVERRIDE; 55 const base::Callback<void(bool)>& callback) OVERRIDE;
56 56
57 // ProfileInfoCacheObserver implementation: 57 // ProfileInfoCacheObserver implementation:
58 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE; 58 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE;
59 virtual void OnProfileWillBeRemoved(
60 const base::FilePath& profile_path) OVERRIDE;
61 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, 59 virtual void OnProfileWasRemoved(const base::FilePath& profile_path,
62 const string16& profile_name) OVERRIDE; 60 const string16& profile_name) OVERRIDE;
63 virtual void OnProfileNameChanged(const base::FilePath& profile_path, 61 virtual void OnProfileNameChanged(const base::FilePath& profile_path,
64 const string16& old_profile_name) OVERRIDE; 62 const string16& old_profile_name) OVERRIDE;
65 virtual void OnProfileAvatarChanged( 63 virtual void OnProfileAvatarChanged(
66 const base::FilePath& profile_path) OVERRIDE; 64 const base::FilePath& profile_path) OVERRIDE;
67 65
68 private: 66 private:
69 // Gives the profile path of an alternate profile than |profile_path|. 67 // Gives the profile path of an alternate profile than |profile_path|.
70 // Must only be called when the number profiles is 2. 68 // Must only be called when the number profiles is 2.
71 base::FilePath GetOtherProfilePath(const base::FilePath& profile_path); 69 base::FilePath GetOtherProfilePath(const base::FilePath& profile_path);
72 70
73 void CreateOrUpdateShortcutsForProfileAtPath( 71 void CreateOrUpdateShortcutsForProfileAtPath(
74 const base::FilePath& profile_path, 72 const base::FilePath& profile_path,
75 CreateOrUpdateMode create_mode, 73 CreateOrUpdateMode create_mode,
76 NonProfileShortcutAction action); 74 NonProfileShortcutAction action);
77 75
78 ProfileManager* profile_manager_; 76 ProfileManager* profile_manager_;
79 77
80 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManagerWin); 78 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManagerWin);
81 }; 79 };
82 80
83 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ 81 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_manager_browsertest.cc ('k') | chrome/browser/profiles/profile_shortcut_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698