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

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

Issue 13864015: Move app launcher and chrome apps shortcut strings into the installer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@migrate_app_id_fix
Patch Set: fix nits Created 7 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
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_SHELL_INTEGRATION_LINUX_H_ 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
6 #define CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ 6 #define CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 28 matching lines...) Expand all
39 // Returns filename of the desktop shortcut used to launch the browser. 39 // Returns filename of the desktop shortcut used to launch the browser.
40 std::string GetDesktopName(base::Environment* env); 40 std::string GetDesktopName(base::Environment* env);
41 41
42 // Returns name of the browser icon (without a path or file extension). 42 // Returns name of the browser icon (without a path or file extension).
43 std::string GetIconName(); 43 std::string GetIconName();
44 44
45 // Returns the set of locations in which shortcuts are installed for the 45 // Returns the set of locations in which shortcuts are installed for the
46 // extension with |extension_id| in |profile_path|. 46 // extension with |extension_id| in |profile_path|.
47 // This searches the file system for .desktop files in appropriate locations. A 47 // This searches the file system for .desktop files in appropriate locations. A
48 // shortcut with NoDisplay=true causes hidden to become true, instead of 48 // shortcut with NoDisplay=true causes hidden to become true, instead of
49 // in_applications_menu. 49 // creating at APP_MENU_LOCATIONS_SUBDIR_CHROMEAPPS.
50 ShellIntegration::ShortcutLocations GetExistingShortcutLocations( 50 ShellIntegration::ShortcutLocations GetExistingShortcutLocations(
51 base::Environment* env, 51 base::Environment* env,
52 const base::FilePath& profile_path, 52 const base::FilePath& profile_path,
53 const std::string& extension_id); 53 const std::string& extension_id);
54 54
55 // Version of GetExistingShortcutLocations which takes an explicit path 55 // Version of GetExistingShortcutLocations which takes an explicit path
56 // to the user's desktop directory. Useful for testing. 56 // to the user's desktop directory. Useful for testing.
57 // If |desktop_path| is empty, the desktop is not searched. 57 // If |desktop_path| is empty, the desktop is not searched.
58 ShellIntegration::ShortcutLocations GetExistingShortcutLocations( 58 ShellIntegration::ShortcutLocations GetExistingShortcutLocations(
59 base::Environment* env, 59 base::Environment* env,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void DeleteDesktopShortcuts(const base::FilePath& profile_path, 113 void DeleteDesktopShortcuts(const base::FilePath& profile_path,
114 const std::string& extension_id); 114 const std::string& extension_id);
115 115
116 // Delete any desktop shortcuts on desktop or in the application menu that have 116 // Delete any desktop shortcuts on desktop or in the application menu that have
117 // for the profile in |profile_path|. 117 // for the profile in |profile_path|.
118 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path); 118 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path);
119 119
120 } // namespace ShellIntegrationLinux 120 } // namespace ShellIntegrationLinux
121 121
122 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ 122 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698