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

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

Issue 10915079: remove --enable-experimental-extension-apis from packaged app shortcut args (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: is_platform_app data member on ShortcutInfo no longer required Created 8 years, 3 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
« no previous file with comments | « chrome/browser/shell_integration.cc ('k') | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21 matching lines...) Expand all
32 FilePath GetExtensionShortcutFilename(const FilePath& profile_path, 32 FilePath GetExtensionShortcutFilename(const FilePath& profile_path,
33 const std::string& extension_id); 33 const std::string& extension_id);
34 34
35 // Returns contents for .desktop file based on |template_contents|, |url| 35 // Returns contents for .desktop file based on |template_contents|, |url|
36 // and |title|. The |template_contents| should be contents of .desktop file 36 // and |title|. The |template_contents| should be contents of .desktop file
37 // used to launch Chrome. 37 // used to launch Chrome.
38 std::string GetDesktopFileContents(const std::string& template_contents, 38 std::string GetDesktopFileContents(const std::string& template_contents,
39 const std::string& app_name, 39 const std::string& app_name,
40 const GURL& url, 40 const GURL& url,
41 const std::string& extension_id, 41 const std::string& extension_id,
42 const bool is_platform_app,
43 const FilePath& extension_path, 42 const FilePath& extension_path,
44 const string16& title, 43 const string16& title,
45 const std::string& icon_name, 44 const std::string& icon_name,
46 const FilePath& profile_path); 45 const FilePath& profile_path);
47 46
48 47
49 // Create shortcuts on the desktop or in the application menu (as specified by 48 // Create shortcuts on the desktop or in the application menu (as specified by
50 // |shortcut_info|), for the web page or extension in |shortcut_info|. Use the 49 // |shortcut_info|), for the web page or extension in |shortcut_info|. Use the
51 // shortcut template contained in |shortcut_template|. 50 // shortcut template contained in |shortcut_template|.
52 // For extensions, duplicate shortcuts are avoided, so if a requested shortcut 51 // For extensions, duplicate shortcuts are avoided, so if a requested shortcut
53 // already exists it is deleted first. 52 // already exists it is deleted first.
54 bool CreateDesktopShortcut(const ShellIntegration::ShortcutInfo& shortcut_info, 53 bool CreateDesktopShortcut(const ShellIntegration::ShortcutInfo& shortcut_info,
55 const std::string& shortcut_template); 54 const std::string& shortcut_template);
56 55
57 // Delete any desktop shortcuts on desktop or in the application menu that have 56 // Delete any desktop shortcuts on desktop or in the application menu that have
58 // been added for the extension with |extension_id| in |profile_path|. 57 // been added for the extension with |extension_id| in |profile_path|.
59 void DeleteDesktopShortcuts(const FilePath& profile_path, 58 void DeleteDesktopShortcuts(const FilePath& profile_path,
60 const std::string& extension_id); 59 const std::string& extension_id);
61 60
62 } // namespace ShellIntegrationLinux 61 } // namespace ShellIntegrationLinux
63 62
64 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ 63 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration.cc ('k') | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698