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

Side by Side Diff: chrome/browser/shell_integration_win.h

Issue 1926403002: Remove BrowserDistribution::SHORTCUT_APP_LAUNCHER (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160406-Mac-EnableAppLauncher0
Patch Set: Update comments Created 4 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SHELL_INTEGRATION_WIN_H_ 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_
6 #define CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_ 6 #define CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Note: If the app has an installation specific suffix (e.g. on user-level 50 // Note: If the app has an installation specific suffix (e.g. on user-level
51 // Chrome installs), |app_name| should already be suffixed, this method will 51 // Chrome installs), |app_name| should already be suffixed, this method will
52 // then further suffix it with the profile id as described above. 52 // then further suffix it with the profile id as described above.
53 base::string16 GetAppModelIdForProfile(const base::string16& app_name, 53 base::string16 GetAppModelIdForProfile(const base::string16& app_name,
54 const base::FilePath& profile_path); 54 const base::FilePath& profile_path);
55 55
56 // Generates an application user model ID (AppUserModelId) for Chromium by 56 // Generates an application user model ID (AppUserModelId) for Chromium by
57 // calling GetAppModelIdForProfile() with ShellUtil::GetAppId() as app_name. 57 // calling GetAppModelIdForProfile() with ShellUtil::GetAppId() as app_name.
58 base::string16 GetChromiumModelIdForProfile(const base::FilePath& profile_path); 58 base::string16 GetChromiumModelIdForProfile(const base::FilePath& profile_path);
59 59
60 // Get the AppUserModelId for the App List, for the profile in |profile_path|.
61 base::string16 GetAppListAppModelIdForProfile(
62 const base::FilePath& profile_path);
63
64 // Migrates existing chrome taskbar pins by tagging them with correct app id. 60 // Migrates existing chrome taskbar pins by tagging them with correct app id.
65 // see http://crbug.com/28104 61 // see http://crbug.com/28104
66 void MigrateTaskbarPins(); 62 void MigrateTaskbarPins();
67 63
68 // Migrates all shortcuts in |path| which point to |chrome_exe| such that they 64 // Migrates all shortcuts in |path| which point to |chrome_exe| such that they
69 // have the appropriate AppUserModelId. Also clears the legacy dual_mode 65 // have the appropriate AppUserModelId. Also clears the legacy dual_mode
70 // property from shortcuts with the default chrome app id. 66 // property from shortcuts with the default chrome app id.
71 // Returns the number of shortcuts migrated. 67 // Returns the number of shortcuts migrated.
72 // This method should not be called prior to Windows 7. 68 // This method should not be called prior to Windows 7.
73 // This method is only public for the sake of tests and shouldn't be called 69 // This method is only public for the sake of tests and shouldn't be called
74 // externally otherwise. 70 // externally otherwise.
75 int MigrateShortcutsInPathInternal(const base::FilePath& chrome_exe, 71 int MigrateShortcutsInPathInternal(const base::FilePath& chrome_exe,
76 const base::FilePath& path); 72 const base::FilePath& path);
77 73
78 // Returns the path to the Start Menu shortcut for the given Chrome. 74 // Returns the path to the Start Menu shortcut for the given Chrome.
79 base::FilePath GetStartMenuShortcut(const base::FilePath& chrome_exe); 75 base::FilePath GetStartMenuShortcut(const base::FilePath& chrome_exe);
80 76
81 } // namespace win 77 } // namespace win
82 } // namespace shell_integration 78 } // namespace shell_integration
83 79
84 #endif // CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_ 80 #endif // CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698