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

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

Issue 8502033: Add Windows desktop shortcut for multiple profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: add three additional files Created 9 years, 1 month 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_
7 #pragma once
8
9 #include <vector>
10
11 #include "base/string16.h"
12 #include "chrome/browser/profiles/profile_info_cache_observer.h"
13
14 class ProfileShortcutManagerWin : public ProfileInfoCacheObserver {
15 public:
16 ProfileShortcutManagerWin();
17 ~ProfileShortcutManagerWin();
18
19 // ProfileInfoCacheObserver
20 virtual void OnProfileAdded(string16 profile_name,
21 string16 profile_base_dir);
22 virtual void OnProfileRemoved(string16 profile_name);
23 virtual void OnProfileNameChanged(string16 old_profile_name,
24 string16 new_profile_name);
25
26 // Remove desktop shortcuts associated with profiles in |shortcut_names|. For
27 // the format of |shortcut_names|, see the |shortcut| argument in
28 // ShellUtil::GetChromeShortcutName.
29 static void RemoveChromeDesktopShortcutsForProfiles(
30 std::vector<string16> shortcut_names);
31
32 // Creates a desktop shortcut to open Chrome with the given profile name and
33 // directory. Must be called on the FILE thread. Iff |create|, create
34 // shortcut if it doesn't already exist.
35 static void CreateChromeDesktopShortcutForProfile(
36 string16 profile_name,
37 string16 directory,
38 bool create);
39
40 // Renames an existing Chrome desktop profile shortcut. Must be called on the
41 // FILE thread.
42 static void RenameChromeDesktopShortcutForProfile(
43 string16 old_profile_name,
44 string16 new_profile_name);
45
46 // Updates the arguments to a Chrome desktop shortcut for a profile. Must be
47 // called on the FILE thread.
48 static void UpdateChromeDesktopShortcutForProfile(
49 string16 shortcut,
robertshield 2011/11/18 03:58:57 micro nit: looks like you could wrap this at the (
Miranda Callahan 2011/11/18 19:00:36 I'll do you one better and rewrap this and the two
50 string16 arguments);
51
52 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManagerWin);
53 };
54
55 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698